2017-10-13 93 views

回答

3

一种方法是使用like

where url like '%$%%' escape '$' 
+0

感谢您的快速和答辩权戈登。有效。 – Anil

1

您可以使用“喜欢”来搜索在URL字段中输入字符。在进行字符串比较时,该问题是the percent is used as a wildcard。请避开您需要的功能escape the percent sign

WHERE url LIKE '%\%%'; 
+1

谢谢凯尔。我试过这个“select * from image像'%\%5C%'这样的url'''';'它的工作。 – Anil

+0

@阿尼尔没问题! – kyle

2

已经回答了,我会扔我的两分钱中的另一种选择:

where instr(url, '%') > 0