I am trying to escape the underscore character in a LIKE
Statement. I have tried to use the ESCAPE
keyword as follows:
COLUMNNAME NOT LIKE '%[\_]xyz%' ESCAPE '\'
but it doesn't work. It is still filtering out %xyz%
when I really want it to filter out %_xyz%
.
If not by the ESCAPE
keyword, how else can this be accomplished?
Any help is appreciated.