gpt4 book ai didi

mysql - 插入时出现 SQL 错误

转载 作者:行者123 更新时间:2023-11-29 01:18:39 25 4
gpt4 key购买 nike

下面的SQL语句有什么问题?

INSERT INTO thread (deleted) 
VALUES ('2009-01-02 17:41:02')
WHERE thread.id = 28

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 'WHERE thread.id = 28' at line 3

编辑:我真是个白痴...更新!!!

谢谢。

最佳答案

http://dev.mysql.com/doc/refman/5.0/en/update.html

UPDATE thread 
SET deleted = TIMESTAMP '2009-01-02 17:41:02'
WHERE id = 28;

关于mysql - 插入时出现 SQL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5655080/

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