I'm currently doing a MySQL insert like this:
INSERT INTO RESI (MarketingRemarks)
SELECT PropertyInformation FROM `property_res`;
I then run independant commands to clean the RESI table of any strange characters like this:
UPDATE RESI SET MarketingRemarks = REPLACE(MarketingRemarks, '“', '"');
UPDATE RESI SET MarketingRemarks = REPLACE(MarketingRemarks, '”', '"');
UPDATE RESI SET MarketingRemarks = REPLACE(MarketingRemarks, '–', '-');
UPDATE RESI SET MarketingRemarks = REPLACE(MarketingRemarks, '½', '1/2');
UPDATE RESI SET MarketingRemarks = REPLACE(MarketingRemarks, '’', '\'');
This seems very inefficient to have all these queries. Is there a way to combine this into a single INSERT statement?
I've tried numerous ways to place the REPLACE into the INSERT statement but with no luck.