I would like to search a field for the underscore character (ansi 95). The problem is that SQL thinks of the underscore character ( _ ) as a single character wildcard. If I say LIKE '%_%'it is the same as LIKE '%'. How can i search for an underscore?
Should have provided more of an explanation. INSTR is the Oracle position function. Other DBMS have similar. The query simply asks that the position of '_' is not zero, meaning not found.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.