|
发表于 2020-6-10 13:45:02
|
显示全部楼层
zt
回复: 请教:SQL语句中转义符是那个?
我知道了,在sql*plus中使用转义符'\',要首先修改环境变量
set escape on
随后就可以使用转义符'\'了,例如
SQL>set escape on
SQL>select count(*) from employees where name='\[$1']
COUNT(*)
----------
0
SQL>select count(*) from employees where name='&1';
输入 1 的值: a
原值 1: select count(*) from employees where name='&1'
新值 1: select count(*) from employees where name='a'
COUNT(*)
---------
0 |
|