标签: postgresql
你好我的SQL语句中有一些错误,当它在数据中过滤带有撇号的数据时。
如何修复此类错误示例?
Select * from table_1 where name ilike '%sam'le%'.
答案 0 :(得分:0)
if type(d[k]) == list
或
SELECT * FROM table_1 WHERE name ILIKE '%sam''le%';
请参阅the documentation。