+ 1
How do I search underscore character in a given column?
3 ответов
+ 2
You need to escape the underscore, to treat it as a character and not a search wildcard.
SELECT column FROM table WHERE column LIKE '%\_%' ESCAPE '\';
0
Thanks
0
Or with regular expression in the where clause, e.g.:
select *
from table
where column_name REGEXP '.*\_.*';