MySql:如何通过检查where子句中的多个字段来更新表的列



我试过这种方法

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

但它在语法上显示了error

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

由于状态reserved keyword

试试这个

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

MySQL 中的关键字和保留字

最新更新