[] MYSQL database | mysql statement error 1271 - Illegal mix of collations for operation 'like'

mysql given statement 1271 - Illegal mix of collations for operation 'like'

Here Insert Picture Descriptionproblem causes:

In MySQL 5.5 above, if the Type field type is time, date, datetime, if used like when select '% Chinese%' will appear Illegal mix of collations for operation 'like'

* Solution:
change like binary '% Chinese%'

Published 31 original articles · won praise 21 · views 8416

Guess you like

Origin blog.csdn.net/weixin_42366630/article/details/103723296