Query Help - String in where clause has amp; character(查询帮助 - where 子句中的字符串有 amp;特点)
问题描述
我正在运行这样的 SQL (Oracle) 语句
I am running an SQL (Oracle) statement like that
select * from table
where table_id in ('265&310', '266&320')
在运行 TOAD 时,它会将 & 视为某个变量占位符并询问其值.如果是 1-2 个占位符,那么我可以在 TOAD 中设置它,但 in 子句有 200 个字符串.
While running through TOAD, it consider & as some variable placeholder and it asks for its value. If it was for 1-2 place holders then I could have set it in TOAD but the in clause has like 200 of strings.
这个查询怎么写?
我想将 DATASET 导出为 SQL INSERT 语句,所以我不能在 SQL-PLUS 中使用它.
I want to export the DATASET as SQL INSERT statement, so I can't use this in SQL-PLUS.
推荐答案
在 TOAD 中,您可以从选项对话框中禁用替换变量的提示:
In TOAD, you can disable the prompt for substitution variables from the options dialog:
您需要取消选中:查看 –> Toad 选项 –> 执行/编译 –> 提示替换变量.
You need to uncheck: View –> Toad Options –> Execute/Compile –> Prompt for Substitution variables.
这篇关于查询帮助 - where 子句中的字符串有 &特点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:查询帮助 - where 子句中的字符串有 &特点
基础教程推荐
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 无法解决整理冲突 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
