gpt4 book ai didi

mysql - 请求更新 phpMyadmin

转载 作者:行者123 更新时间:2023-11-29 10:43:24 25 4
gpt4 key购买 nike

我想更新 phpMyAdmin 中的 SQL 表,以更改列的值。我的要求是:

Update article set Id_LRU where ID_Article='DIEPRESTATION' 

它返回一个错误:

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 ID_Article='DIEPRESTATION'' at line 1

我使用 like 对其进行了更改,因为该字段的类型是 Varchar:

Update article set Id_LRU where ID_Article like 'DIEPRESTATION' 

也出现了同样的错误。请问我该如何纠正。

最佳答案

您有语法错误。

Update article set Id_LRU ='YOURVALUE' where ID_Article like 'DIEPRESTATION' 

尝试上面的查询。

关于mysql - 请求更新 phpMyadmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45051462/

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