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)类型名称,长度有没有写错

等等原因,,,

猜你喜欢

转载自www.cnblogs.com/arsn/p/12541223.html