2 u010990330 u010990330 于 2014.08.08 20:35 提问

mysql视图创建临时表查询问题?

create algorithm=temptable view aj as select

sporter.sporter_id,name,grade.itemid,itemname,mark from sporter inner join grade on

sporter.sporter_id=grade.sporter_id
inner join item on item.itemid=grade.itemid
where location='一操场';

我这样写在查询是为什么会报错?
mysql> select * from aj;
ERROR 1267 (HY000): Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COER
CIBLE) for operation '='

1个回答

shendixiong
shendixiong   2014.08.11 09:11
create algorithm=temptable view aj as ...

你把这个等号(=)号去掉吧

Csdn user default icon
上传中...
上传图片
插入图片