postgresql - Filter data in Postgre using ILIKE with an Apostrophe sign -


hello have error in sql statement when comes filtering data apostrophe sign within data.

how fix kind of error sample?

select * table_1 name ilike '%sam'le%'. 

select * table_1 name ilike '%sam''le%'; 

or

select * table_1 name ilike $$%sam'le%$$; 

see the documentation.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -