MySql:如何通过检查where子句中的多个字段来更新表的列?
我试过这样做MySql:如何通过检查where子句中的多个字段来更新表的列?,mysql,Mysql,我试过这样做 update message set status='Accepted' where tid=' ' and ltime=' ' and ldate=' '; 但它在语法上显示错误 我的行是通过这三个字段唯一标识的。因为状态是一个保留关键字 像这样试试 update message set `status`='Accepted' where tid=' ' and ltime=' ' and ldate=' '; 请显示完整的错误消息,此查询应该可以运行。tid ltime
update message set status='Accepted' where tid=' ' and ltime=' ' and ldate=' ';
但它在语法上显示错误
我的行是通过这三个字段唯一标识的。因为状态是一个
保留
关键字
像这样试试
update message
set `status`='Accepted'
where tid=' ' and ltime=' ' and ldate=' ';
请显示完整的错误消息,此查询应该可以运行。tid ltime ldate是什么类型?tid、ltime和ldate列是什么数据类型?