Skip to content

Instantly share code, notes, and snippets.

@stajnert
Created August 17, 2012 11:19
Show Gist options
  • Save stajnert/3378102 to your computer and use it in GitHub Desktop.
Save stajnert/3378102 to your computer and use it in GitHub Desktop.
Remove \n and \r from column
UPDATE table SET column = REPLACE(REPLACE(column, '\r', ''), '\n', '');
UPDATE table SET column = REPLACE(REPLACE(column, '\r', ''), '\n', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment