I'm using MySQL Data Compare to compare a local & remote mysql db.
I'm trying to setup a simple WHERE clause that excludes any rows from the comparison that contain the following values:
%mm
or %transient%
The WHERE clause i'm using doesn't seem to be working.
'option_name' NOT LIKE '%_transient_%' OR '%mm%'
The full query that's running is:
SELECT 'option_id', 'option_name', 'option_value', 'autoload'
FROM 'wp_options WHERE 'option_name' NOT LIKE '%_transient_%' OR '%mm%'
And the resulting output does not exclude the rows that that have mm
or _transient_
in the option_name column.
The caveat here is that I'm limited to only using a WHERE clause & I'm not able to edit the SELECT clause leading up to it (as that's all generated by the software).