I want to loop the following command, for all distinct values in a column
update myTable set myUglyField = replace(myUglyField,'<trimmed distinct value here>\r\n','<trimmed distinc value here>');
Anyone know if this could be done, instead of going one by one to remove \r\n
If you run that query you have right there it will update ALL rows in the table, so I think you’re good.