开发者社区 问答 正文

mysql添加数据出错? 400 报错

mysql添加数据出错? 400 报错 INSERT INTO price_data (
    current_time,
    crqwl_time,
    bid_price,
    selling_price,
    auction_price,
    item_id

)
VALUES
    (
        '2016-12-11 13:54:16',
        '2016-12-12 13:54:16',
        '2.3300',
        '2.1300',
        '2.0300',
        '欧元/美元'

    );



哪里错了啊



[SQL]INSERT INTO price_data (
    current_time,
    crqwl_time,
    bid_price,
    selling_price,
    auction_price,
    item_id

)
VALUES
    (
        '2016-12-11 13:54:16',
        '2016-12-12 13:54:16',
        '2.3300',
        '2.1300',
        '2.0300',
        '欧元/美元'
    );
[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 'current_time,
    crqwl_time,
    bid_price,
    selling_price,
    auction_price,
    ite' at line 2

展开
收起
爱吃鱼的程序员 2020-06-05 13:13:36 423 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    已经知道错误current_time与数据库的关键字冲突,######

    引用来自“涅槃丶菜鸟”的评论

    已经知道错误current_time与数据库的关键字冲突,
    OK######

    命名规范很重要啊,字段名在前面或者后面加上后缀 挺好。我一般加我的姓,万一出名了呢。呵呵

    2020-06-05 13:13:50
    赞同 展开评论