Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. spouse�s
  2.  
  3. SELECT DUMP(the_column)
  4. FROM xxx
  5. WHERE xxx
  6.  
  7. SELECT DUMP(<column with weird character>, 1016)
  8. FROM <your table>
  9. WHERE <column with weird character> like '%spouse%';
  10.  
  11. UPDATE <table>
  12. set <column with offending character>
  13. = REGEX_REPLACE(<column with offending character>,
  14. "<character code of �>",
  15. "'")
  16. WHERE regex_like(<column with offending character>,"<character code of �>");
  17.  
  18. INSERT (<normal table columns>,...,<column with offending character>) INTO <table>
  19. SELECT <all normal columns>, REGEX_REPLACE(<column with offending character>,
  20. "092",
  21. "027") -- for ASCII/ISO-8859-1 apostrophe
  22. FROM <table>
  23. WHERE regex_like(<column with offending character>,"092");
  24.  
  25. DELETE FROM <table> WHERE regex_like(<column with offending character>,"092");
Add Comment
Please, Sign In to add comment