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

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -