我写了这个查询获取问题:排序规则的非法组合在MySQL
select *
from order mbo
where storeId in(select storeid
from store bs
INNER JOIN distributioncenter bd
on bd.distributionCenterId = bs.distributionCenterId
where (bd.orderCloseTime > curtime() and date(bo.orderDate)>=date(now())
and bs.storeId=1112211)
or (date(bo.orderDate)>date(now())and bs.storeId=1112211));
而且此查询工作正常在我的地方,但是当在其他同事的系统我收到下面的问题。
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,NUMERIC) for operation '>';
可能是什么问题?
@Strawberry所有连接的表是UTF8格式 – Akash