gpt4 book ai didi

MySql : How to update column of table by checking for multiple fields in where clause?

转载 作者:行者123 更新时间:2023-11-29 21:10:13 26 4
gpt4 key购买 nike

我试过这个方法

update message set status='Accepted' where tid=' ' and ltime=' ' and ldate=' ';

但它在语法中显示错误

我的行通过这三个字段唯一标识。

最佳答案

由于状态保留 关键字

尝试这样

update message 
set `status`='Accepted'
where tid=' ' and ltime=' ' and ldate=' ';

Keywords and Reserved Words in MySQL

关于MySql : How to update column of table by checking for multiple fields in where clause?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36450755/

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