Mysql experts,
I have a Mysql job that runs perfectly when I run from the mysql workbench GUI.
Now I am trying to automate the job by running it from the command line. It is throwing an error when it gets to a replace function that I have:
UPDATE `MyTable`
SET `Col1` = REPLACE (`Col1`, '˜', '');
So all I am trying to do is strip out some unwanted characters from these columns. The Error thrown is:
ERROR 1270 (HY000) at line 232: Illegal mix of collations (latin1_swedish_ci,IMP LICIT), (cp850_general_ci,COERCIBLE), (cp850_general_ci,COERCIBLE) for operation 'replace'
I'm not understaing why there is a "mix" of collations within one column in one table. How can I remedy this error to run through as it does in the GUI?
TIA! -Jake
EDIT: Thank you all for the replies! Spencer7593's solution of specifying the collation before the strings ( REPLACE(foo,_latin1'a','_latin1'b') ) was the quick workaround I was looking for. The command line runs smoothly now.
Much appreciated Spencer :)