SQL to replace smart quotes

GBa picture GBa · Mar 19, 2009 · Viewed 7.2k times · Source

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

Answer

Rich picture Rich · Mar 19, 2009

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