select * from elves where firstname like '%tegil%' or lastname like '%astar%'
my query above is working properly, if i change single quote with double quote at (tegil) query not working.
select * from elves where firstname like "%tegil%" or lastname like '%astar%'
There was an error with the SQL query:
PG::UndefinedColumn: ERROR: column "%tegil%" does not exist LINE 1: ...)))) as shortlist from elves where firstname like "%tegil%" ... ```
any different about single quote ('') with double quote ("") because at sqllite there are 2 working normal. but at postgresql just single quote working and the double quote not working with query.