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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -