NicksonKoh
asked on
Escape character _ in SQL doesn't work
I want to list tables that contains _ but it list all the tables instead with the following sql. Why?
select * from tab where tname like '%_%'
select * from tab where tname like '%_%'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hi
try this
select tname from tab where tname LIKE '%!_%' escape '!'
regards
try this
select tname from tab where tname LIKE '%!_%' escape '!'
regards
ASKER
select * from tab where tname like '%\_%'
I tried the above and it does not work.