非法混合操作和匹配'

时间:2014-04-06 16:25:13

标签: mysql

我有一个像

这样的查询
select txt, unix_timestamp(added), uid, id2, id2_type 
  from sitelog 
  where match (id2, uid, txt) against (? in boolean mode)

返回此错误:

Illegal mix of collations (latin1_swedish_ci,NUMERIC), (latin1_swedish_ci,NUMERIC), (utf8_unicode_ci,IMPLICIT) for operation 'match'

我的查询:

CREATE TABLE IF NOT EXISTS `sitelog` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `added` datetime NOT NULL,
  `txt` text COLLATE utf8_unicode_ci NOT NULL,
  `uid` int(11) NOT NULL,
  `id2` int(11) NOT NULL,
  `id2_type` char(1) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`),
  KEY `id2` (`id2`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

MySQL:5.5.35 + dfsg-0 + wheezy1 如何解决这个问题?

0 个答案:

没有答案
相关问题