我是你一一哥 2016-01-04 02:36 采纳率: 54.2%
浏览 1619
已采纳

mysql 找错 ,能够更新其他字段,只有describe更新失败

错误信息

mysql> update t_project_type set describe='aaa' where id='2';
1064 - 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 'describe='aaa' where id='2'' at line 1

表信息

CREATE TABLE t_project_type (
id smallint(6) NOT NULL AUTO_INCREMENT,
typeName varchar(50) DEFAULT NULL,
projProp tinyint(4) DEFAULT NULL,
addTime char(19) DEFAULT NULL,
describe varchar(200) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

mysql 版本

mysql> select version();
+------------+
| version() |
+------------+
| 5.5.35-log |
+------------+

  • 写回答

3条回答 默认 最新

  • 关注

    亲,你试一下将describe字段名字换一下,这个好像是mysql 关键字!~~

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?