簡體   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