日期:2014-05-17  浏览次数:21008 次

有左中括号([)右中括号(])的查询如何做?
如果需要查询带有[或者]字符的,如果写sql语句?

像左中括号的可以这样select * from t where [title] like '%[[]%'

但是右中括号的话,这样select * from t where [title] like '%[]]%'就不行了.

一般大家像这样的情况是如何处理?谢谢!

------解决方案--------------------
右括号不用啊
select * from t where [title] like '%]%'