首页 > 数据库 > Oracle > oracle转义字符
SQL> select * from test;
ID
------------------------------------------------------------
c_zhang
zhangsan
cccccc
SQL> select id from test where id like 'c_%' escape '';
ID
------------------------------------------------------------
c_zhang
SQL> select id from test where id like 'c=_%' escape '=';
ID
------------------------------------------------------------
c_zhang
SQL> select id from test where id like 'c/_%' escape '/';
ID
------------------------------------------------------------
c_zhang
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/18921899/viewspace-1017266/ ,如需转载,请注明出处,否则将追究法律责任。