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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -