I'm in the process of migrating a db from MySql to PostgreSql
I have one last thing outstanding: In the table steps there is a column overlay_custom_css.
Example of data in customer_overlay_css:
left:957px;\r\ntop:594px;\r\nwidth:68px;\r\nheight:30px;
I need to remove the \r\n from this data. As I understand it, the \ is a special char so must be escaped by another \
source:https://www.postgresql.org/docs/8.3/static/functions-matching.html
Here's what I have so far:
UPDATE
steps
SET
overlay_custom_css = REPLACE(overlay_custom_css,'\\r\\n','')
WHERE
overlay_custom_css LIKE '%\\r\\n%';
After I run this it says it affected 200+ rows, but looking at my data it made no difference.
Could anyone tell me where I'm going wrong?