1、摘要
spa
PLSQL對應的字符和序號關係3d
PLSQL對應的字符和序號關係code
1. 轉義字符爲' ';orm
select * from bxj_test where testchar like 'sdd _%' escaape ' ';--sdd_kk
select * from bxj_test where testchar like 'sdd\_%' escape '\' ;--sdd_kk
select * from bxj_test where testchar like 'sdd=_%' escape '=' ;--sdd_kk
select * from bxj_test where testchar like 'sdd/_%' escape '/' ;--sdd_kk
select * from bxj_test where testcharlike '%\_%' escape '\' ;--sdd_kk
select * from bxj_test where testchar like '%\%%' escape '\' ;--dffa%asfs--1%2345--1%54321--2%54321--%%54321
select * from bxj_test where testchar like '%\&%' escape '\' ;--ORA-01424: 轉義符以後字符缺失或非法
select ascii('&') from dual;--38select * from bxj_test where testchar like '%'||chr(38)||'%';--A&B
Thanks and Regardsblog
2015-05-06 Created By BaoXinjianci