ian*_*cho 84 sql oracle escaping oracle-sqldeveloper
尝试使用Oracle SQL Developer执行SQL插入语句时,我会继续生成"输入替换值"提示:
insert into agregadores_agregadores
(
idagregador,
nombre,
url
)
values
(
2,
'Netvibes',
'http://www.netvibes.com/subscribe.php?type=rss\&url='
);
Run Code Online (Sandbox Code Playgroud)
我已经尝试使用上面的'\' 转义查询中的特殊字符,但我仍然无法避免使用&符号'&',导致字符串替换.
来吧朋克,让我的一天:)
RC.*_*RC. 30
将define字符设置为&以外的其他字符
SET DEFINE ~
create table blah (x varchar(20));
insert into blah (x) values ('blah&');
select * from blah;
X
--------------------
blah&
Jef*_*emp 15
insert into AGREGADORES_AGREGADORES (IDAGREGADOR,NOMBRE,URL)
values (2,'Netvibes',
'http://www.netvibes.com/subscribe.php?type=rss' || chr(38) || 'amp;url=');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
256229 次 |
| 最近记录: |