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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -