2012-05-28 80 views
1

我有在MySQL表中的字段類型設置和整理拉丁通用詞,我詢問這樣如何忽視MySQL查詢

SELECT * FROM `tblCountry` WHERE FIND_IN_SET("KAN", `tLang`) 

整理,它工作在SQLyog的罰款,但在phpMyAdmin它給了我錯誤

#1267 - Illegal mix of collations (utf8_unicode_ci,COERCIBLE) and (latin1_general_ci,IMPLICIT) for operation 'find_in_set' 

因此,如何忽略排序規則類型,是有這個

回答

1
SELECT * 
FROM tblCoutnry 
WHERE FIND_IN_SET(CAST('KAN' AS CHAR CHARACTER SET latin1) COLLATE latin1_general_ci, tlang) 
任何解決辦法