postgresql - Replace apostrophe in string -


how replace single apostrophe ' in string ie;

turn king's lynn kings lynn

something like

select replace ('king's lynn',''','')

have tried ''\' doesn't escape

dollar quoting makes easier:

replace ($$king's lynn$$, $$'$$, '') 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -