Cod*_*ian 12
SET SCAN已过时,但它用于控制是否应扫描替换参数/变量.OFF会阻止扫描参数/变量.
SET DEFINE替换/扩展功能,这里有一个很好的文章:http://shaharear.blogspot.com/2009/01/set-define.html
来自网站
set define on;
从双重中选择'&hello';
如果define设置为on并且SQL*Plus找到当前的替换前缀,则会要求输入字符串.在以下示例中,我输入了:hasan
输入hello的值:输入此字符串
old 1: select '&hello' from dual
new 1: select 'this string was entered' from dual
Run Code Online (Sandbox Code Playgroud)
这相当于旧的SET SCAN工作方式.基本上你控制是否提示替换
| 归档时间: |
|
| 查看次数: |
16298 次 |
| 最近记录: |