Hello.


Use CAST(). See:

  http://dev.mysql.com/doc/mysql/en/Charset-CAST.html







  Jens Schreiber <[EMAIL PROTECTED]> wrote:

> Hello,

> 

> I'm using 4.1.8-standard on linux and get this:

> 

> CREATE TABLE test (field1 CHAR(20) BINARY NOT NULL, field2 CHAR(20)

> NOT NULL) TYPE=MyISAM;

> INSERT INTO test VALUES('xxx','yyy')

> SELECT * FROM test WHERE field1=field2

> 

> ERROR 1267 (HY000): Illegal mix of collations (latin1_bin,IMPLICIT)

> and (latin1_swedish_ci,IMPLICIT) for operation '='

> 

>    Thanks

>       Jens

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to