Oracle:转义字符:修订间差异
imported>Soleverlee (以“Oracle中查询遇到特殊字符时,需要进行转义: <source lang="sql"> select * from user_tables where table_name like 'T\_%' escape '\' </source> 这里...”为内容创建页面) |
(没有差异)
|
2016年2月29日 (一) 10:30的最新版本
Oracle中查询遇到特殊字符时,需要进行转义:
select * from user_tables where table_name like 'T\_%' escape '\'
这里的'\'就用来转义'_'。
需要进行字符串连接时,使用'||'进行:
select '<table tableName="'||table_name||'"/>' from user_tables where table_name like 'T\_%' escape '\'