MySql 表的一个字段名和关键字重名

来源:互联网 发布:江湖婚庆3.0源码 编辑:程序博客网 时间:2024/06/05 01:53

今天遇到一个问题就是表的一个字段名和关键字重名

例:

查询:insert into t_employee(name,describe,create_time) values('13','13',now())

错误代码: 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,create_time) values('13','13',now())' at line 1


describe是mysql中的关键字   


最后把describe 两边的单引号改成反引号(数字键1旁边ESC下面的那个键)就好了


转载自:http://blog.sina.com.cn/s/blog_4979ec3e010151gx.html


0 0
原创粉丝点击