sql - 旧的 : and the NEW:

标签 sql oracle plsql sqlplus

我正在使用 Oracle SQL Developer。

我正在使用参数&TableName

我的查询在结果中返回给我,前面有一个 OLD: 标签,然后又是一个 New: 标签(变量被替换为我已经输入了)然后我的结果就是这样。

我如何摆脱这个恼人的返回并将其更改为只显示我的结果?

最佳答案

在 SQL*Plus 中,我认为您的意思是 SET VERIFY OFF。我手头没有 SQL Developer 来检查它是否相同,但我想是这样。

编辑以添加示例并确认它在 SQL Developer 中也能正常工作。

define tmpVar='test'

set verify on

select '&tmpVar' from dual;

set verify off

select '&tmpVar' from dual;

产生:

old:select '&tmpVar' from dual
new:select 'test' from dual
'TEST' 
------ 
test   

'TEST' 
------ 
test   

@a_horse_with_no_name 提供的链接也显示了这一点。

关于sql - 旧的 : and the NEW:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3772651/

相关文章:

php - MySQL 表/查询设计 - 一项的倍数,许多评论

mysql - 连接 3 个表 MySQL

SQL 查找平均得分最高的 worker 姓名

oracle - 在oracle中估计索引创建时间

sql - IF 语句而不是选择

sql - PostgreSQL : CAST column only if exists

php - 进入Fk表更新记录

oracle - Oracle sql中如何过滤空值

oracle - 如何找出存储过程中使用了哪些表/ View /同义词

sql - 用于动态 sql 透视的 Oracle 函数