Oracle 甲骨文SQLPLUS逃逸&;性格
正如我在oracle文档中发现的Oracle 甲骨文SQLPLUS逃逸&;性格,oracle,sqlplus,Oracle,Sqlplus,正如我在oracle文档中发现的 SET ESCAPE: Defines an escape character you can use before the substitution character. The escape character instructs SQL*Plus to treat the substitution character as an ordinary character rather than as a request for variable substi
SET ESCAPE:
Defines an escape character you can use before the substitution character. The escape character instructs SQL*Plus to treat the substitution character as an ordinary character rather than as a request for variable substitution. The default escape character is a backslash (\).
SET DEFINE:
Defines the substitution character (by default the ampersand "&") and turns substitution on and off.
在我提问之前,我应该这样做吗
SET DEFINE off
select 'A&B' from dual;
SET DEFINE on
在我的情况下是否需要使用set escape on?通过设置define off,您已经关闭了替换变量检测。因此,不,在这种情况下,您不需要逃避符号。谢谢@Boneist:)