I have in a column names(notes) as
Notes:
John’s Table
Smith's Window
Column contains an apostrophe in it. I am trying to run 2 queries.
- Select query to get the column entries that have apostrophe.
- Update those with apostrophe with empty string ie.John’s Table replace to John Table
select notes from table1 where notes like ‘ ‘% ‘;
I get a syntax error , any help will be great.
Escape the apostrophe with a backslash;
And to update, use REPLACE()