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

 

等等原因,,,

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 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 MySql 执行语句错误 Err] 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 Django进行数据迁移时,报错:(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 '(6) NOT NULL)' at line 1") 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 '"id", 解决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 'order (order_name, customer) mybatis批量更新update-设置多个字段值 报错 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 插入数据库失败([Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version) check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY '123456' WITH GRANT OPTION' at line 1 Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My pymysql 1064, 'You have an error in your SQL syntax; check the manual that corresponds to
 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM