ERROR 1064 (42000): 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
MySQL 报这个错,主要是因为写入的元素类型与表的列的类型不匹配
怎么说呐刚开始学MySQL 所以容易犯一些低级的错误,比如以前的string类型在MySQL里面要写varchar 不是char,太蠢了!!;
更改表的列的数据类型:
alter table student modify column sname varchar(20)