Oracle SQL转义字符(用于'&') [英] Oracle SQL escape character (for a '&')

查看:744
本文介绍了Oracle SQL转义字符(用于'&')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用 Oracle SQL Developer 来执行SQL插入语句时a>我不断生成输入替换值"提示:

While attempting to execute SQL insert statements using Oracle SQL Developer I keep generating an "Enter substitution value" prompt:

insert into agregadores_agregadores 
(
 idagregador,
 nombre,
 url
) 
values 
(
 2,
 'Netvibes',
 'http://www.netvibes.com/subscribe.php?type=rss\&url='
);

我尝试了在其中转义特殊字符使用上面的"\"进行查询,但我仍然无法避免使用&号,而导致字符串替换.

I've tried escaping the special character in the query using the '\' above but I still can't avoid the ampersand, '&', causing a string substitution.

推荐答案

&是DEFINE的默认值,它允许您使用替换变量.我喜欢使用

the & is the default value for DEFINE, which allows you to use substitution variables. I like to turn it off using

关闭设置

那么您就不必担心逃逸或CHR(38).

then you won't have to worry about escaping or CHR(38).

这篇关于Oracle SQL转义字符(用于'&')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆