gpt4 book ai didi

MySQL 在 where 子句上给出错误

转载 作者:太空宇宙 更新时间:2023-11-03 12:23:50 25 4
gpt4 key购买 nike

我正在学习 mysql 的教程,它给了我一个错误,但他没有

UPDATE members SET birthday '2002-01-01'
WHERE `member_id` = 2

我明白了

#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 ''2002-01-01' WHERE member_id = 2' at line 1

最佳答案

你错过了你的集合中的 = 符号。试试这个:-

UPDATE members SET birthday = '2002-01-01' WHERE member_id = 2 

关于MySQL 在 where 子句上给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18549365/

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