Why can't I use a specific collation in MySQL?
问题 I have a table with the character set latin1 (checked by show variables like "character_set_database"; ) and a default collation of latin1_swedish_ci (checked by SHOW TABLE STATUS; ). I'd like to run a query using the collation latin1_general_cs , which is compiled on my system (checked by Show collation LIKE "%_cs"; ): select * from myTab WHERE col RLIKE '[[:upper:]]' COLLATE 'latin1_general_cs' LIMIT 10; which gives an error: ERROR 1253 (42000): COLLATION 'latin1_general_cs' is not valid