Oracle特殊字符 [英] Oracle special characters
本文介绍了Oracle特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个查询
select * from table where name in ('52 T&M', '60 T&M');
&"使查询期望参数.我如何限定&"在查询中刺痛,以便查询可以找到带有&"的字符串他们有个性吗?
The "&" is causing the query to expect a parameter. How do I qualify the "&" in the query to sting so that the query can find string with the "&" character in them?
推荐答案
我通常会按照omg的建议使用set define off
,但也可以这样做:
I would normally use set define off
as suggested by omg but it is also possible to do it like this:
select *
from table
where name in ('52 T'||Chr(38)||'M', '60 T'||Chr(38)||'M');
这篇关于Oracle特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文