Mysql
 sql >> Database >  >> RDS >> Mysql

Combinazione illegale di errori di confronto in MySql

Ecco come verificare quali colonne sono le regole di confronto errate:

SELECT table_schema, table_name, column_name, character_set_name, collation_name

FROM information_schema.columns

WHERE collation_name = 'latin1_general_ci'

ORDER BY table_schema, table_name,ordinal_position; 

Ed ecco la query per risolverlo:

ALTER TABLE tbl_name CONVERT TO CHARACTER SET latin1 COLLATE 'latin1_swedish_ci';

Link