gpt4 book ai didi

MySQL插入带日期的行

转载 作者:搜寻专家 更新时间:2023-10-30 19:57:46 25 4
gpt4 key购买 nike

use TREND_INFORMATION

INSERT INTO log_index_level_1
(LOG_INDEX, LOT_ID, WAFER_ID, MAP_REV, PROBE_DATE)
(42, "2819893.003", "9893-06", "PR20", "2013-07-13");

我不断收到以下错误,我不确定自己做错了什么。

列类型分别为 int 、 varchar 、 varchar 、 varchar 和 date 。

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL s er version for the right syntax to use near '42, "asdfasfasf", "asdfas", "tes", '2013-07-13')' at line 3

最佳答案

您缺少关键字 VALUES

INSERT INTO log_index_level_1
(LOG_INDEX, LOT_ID, WAFER_ID, MAP_REV, PROBE_DATE)
VALUES -- <-- That's what you're missing
(42, "2819893.003", "9893-06", "PR20", "2013-07-13");

关于MySQL插入带日期的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19669221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com