如何在Oracle SQL Developer中避免变量替换
如何在Oracle SQL Developer中避免变量替换
当我尝试在Oracle SQL Developer 2.1中执行这个语句时,会弹出一个\"输入替换变量\"对话框,要求替换TOBAGO的值,
update t set country = 'Trinidad and Tobago' where country = 'trinidad & tobago';
如何避免使用chr(38)
或u\'trinidad \\0026 tobago\'
这两种方式,这两种方式都会隐藏语句的目的?
admin 更改状态以发布 2023年5月20日
在查询之前调用此方法:
set define off;
另外,还有一个hacky方法:
update t set country = 'Trinidad and Tobago' where country = 'trinidad &' || ' tobago';
来自 Tuning SQL*Plus:
SET DEFINE OFF禁用了解析命令,以替换化变量为其值。