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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -