使用具有撇号的ILIKE过滤Postgre中的数据

时间:2016-07-11 12:44:24

标签: postgresql

你好我的SQL语句中有一些错误,当它在数据中过滤带有撇号的数据时。

如何修复此类错误示例?

Select * from table_1 where name ilike '%sam'le%'.

1 个答案:

答案 0 :(得分:0)

if type(d[k]) == list

SELECT * FROM table_1 WHERE name ILIKE '%sam''le%';

请参阅the documentation