Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL to replace smart quotes

Does anyone know a SQL command to replace MS Office smart quotes with their ASCII cousins? I'm using an oracle database and the fields are of type varchar2

like image 264
GBa Avatar asked Mar 19 '09 18:03

GBa


2 Answers

update table set column = replace(replace(column, chr(147),'"'), chr(148), '"')

like image 101
Rich Avatar answered Oct 17 '22 12:10

Rich


REPLACE(REPLACE(str, '`', ''''), '´', '''')

Or am I missing your question?

like image 22
erikkallen Avatar answered Oct 17 '22 13:10

erikkallen