繁体   English   中英

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

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

我这样尝试

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中的关键字和保留字

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM