2017-07-20 2 views
0

Ich habe diese Abfrage geschriebenErste Ausgabe: Illegal Mix von Sortierungen in 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)); 

Und diese Abfrage funktioniert gut in meinem lokalen, aber wenn in anderen Kollegen System i unten Problem bin immer.

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,NUMERIC) for operation '>'; 

Was könnte das Problem sein?

+0

@Strawberry alle angeschlossenen Tabellen im UTF8-Format sind – Akash

Antwort

0

in Ihrer MySQL-Datenbank, "SHOW VARIABLES LIKE 'character_set _%'", stellen Sie sicher, dass alle von ihnen sind "UTF8"

+0

Sie wollen, dass ich diesen Befehl ausführen? – Akash

+0

Ich meine alle verbundenen Tabellenformat sind in Urf8, ich habe es verifiziert. – Akash

+0

Auch Character_set_client? –

Verwandte Themen