首页 > 代码库 > 插入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
插入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
插入一个很简单的sql语句时候,mysql一直报错:
[SQL] INSERT INTO ORDER (
id,
activity_id,
order_type,
phone,
order_amount,
order_state,
pay_type
)
VALUES
(
‘4‘,
‘2121313‘,
‘1‘,
‘13552444989‘,
‘1‘,
‘1‘,
‘1‘
)
[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 ‘ORDER (
id,
activity_id,
order_type,
phone,
order_amount,
order_stat‘ at line 1
想了半天,忽然发现 order是mysql的关键字,不能当做表名字来使用。。。 真是醉了!
插入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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。