1、INSERT INTO pre_test( id, word ) VALUES ( 88, '乗' );
2、INSERT INTO pre_test( id, word ) VALUES ( 88, '觿' );
----------------------------------------------------------
上面1允行出错,2正常,同样的繁体字,为何不同的插入结果捏?mysql5
数据表结构 
CREATE TABLE IF NOT EXISTS pre_test (
  id mediumint(10) NOT NULL auto_increment,
  word varchar(2) NOT NULL,
  PRIMARY KEY  (id)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
----------------------------------------------------------
大千世界,啥怪事都能碰到,求高手帮助攻克。

解决方案 »

  1.   

    MySQL 提示: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''乗')' at line 1 
      

  2.   

    都是导入脚本吗  那么导入的时候加上参数  msyql --default-charactor-set=xxx
      

  3.   

    正解!
    gbk支持是常用的,根本不够用!!你换成utf8就可以,utf支持的比较完善吧!