regex - mysql: instr specify word boundaries -
I have to check that there is no field value as a subring in a string or not.
But this word does not search on boundaries. Choose from mytable * Instr ("mystring", concat ('[[: [[lt ;:]]', column_name, '[[:: & gt ;:]]');
It does not work either. To correct this?
< P> You can use it operator:
SELECT * mytable WHERE 'mystring' REGEXP CONCAT ('[[: & lt;:]]', column_name, '[[: Note: However, this is slow . If you care about words, then you can make the best use. Or General InStr ()
, then filter the results.
Comments
Post a Comment