I\'m trying to find certain text \"catid=18\" in a string, where each string is different except for this. I\'ve used this query below before, except it only seems to work if yo
Not sure if that is what you want. But it will return 1 if catid=any_num is found and 0 if not:
1
catid=any_num
0
select 'some_text catid=18 some_text' REGEXP 'catid=[0-9]+'
Maybe you need:
update TABLE_NAME set FIELD_NAME = 'goodvalue' WHERE FIELD_NAME = 'badvalue';