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
Post a Comment