【发布时间】:2011-08-19 19:09:44
【问题描述】:
select * from tableName where somecode = '$$$$$$$&8Y~$$$$'
当我在 SQLPlus Worksheet 中运行此查询时,我得到如下输出:
输入 8y 的值:old 2: And somecode = '$$$$$$$&8Y~$$$$') 新 2: 还有一些代码 = '$$$$$$$OEM_sqlplus_input_finished~$$$$')
没有选择行
我的问题是,如果使用 OracleConnection 和 OracleCommand(命令类型为文本)从 ASP.NET 应用程序执行此查询,它会作为查询 1 还是 2 执行?
1. select * from tableName where somecode = '$$$$$$$&8Y~$$$$'
2. select * from tableName where somecode = '$$$$$$$OEM_sqlplus_input_finished~$$$$'
如果以后是这种情况,我如何仅对当前的 OracleConnection 会话禁用像这样的参数替换(在关闭连接后恢复到原来的状态)?
(是旧的.NET 1.1应用,所以使用OracleConnection和OracleCommand)
【问题讨论】: