Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 甲骨文SQLPLUS逃逸&;性格_Oracle_Sqlplus - Fatal编程技术网

Oracle 甲骨文SQLPLUS逃逸&;性格

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

正如我在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 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:)