Oracle pl-sql转义字符(对于'&') [英] Oracle pl-sql escape character (for a '&')
本文介绍了Oracle pl-sql转义字符(对于'&')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在尝试使用 Oracle SQL Developer 我继续生成一个输入替换值提示符:
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
SET DEFINE OFF
SET DEFINE OFF
关闭它,那么你不必担心转义或CHR(38)。
then you won't have to worry about escaping or CHR(38).
这篇关于Oracle pl-sql转义字符(对于'&')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文