Mysql语法错误之> 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'

随笔,记录错误!

 

错误提示: 

> 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 '),

  consumpiton_time date,

  create_time datetime,

  consumer_id int(11),

  ' at line 6

 

错误原因: at line6 一直以为是从列的第一行开始算的,找来找去没找到原因,double,float少用,写错了也没发觉

 

 

 

所以我们还需仔细检查sql语句的语法

1) 结尾的标点符号,主要中英切换

2)类型名称,长度有没有写错

 

等等原因,,,

 

posted on 2020-03-21 20:58  arsn  阅读(6290)  评论(1编辑  收藏  举报

导航