Here’s my code:
SELECT TRIM(CONCAT_WS(’ ',hn,hn_suf,dir,sn,type,suf)) AS addr
REPLACE(addr," “,” ")
FROM vot13
WHERE zip = ‘68502’
GROUP BY addr
INTO OUTFILE ‘c:/users/desktop/geo2.csv’
FIELDS TERMINATED BY ‘,’
ENCLOSED BY ‘"’
LINES TERMINATED BY ‘\n’
This script returns a parse error.
What’s the right way to use REPLACE? This script executes successfully when I remove REPLACE.