我有一个问题,如果我想更新2记录只有一个命令,是不可能这样做?在不同日期更新2条记录?
mysql_query("UPDATE damacaicheck SET trimresult = '$trim' where date = '$Current' and date = '$yesterdaydate'");
或
mysql_query("UPDATE damacaicheck SET trimresult = '$trim' where date in ('$Current','$yesterdaydate')");
你可以做到这一点。什么似乎是问题? – theking963
接受一些答案如何:)。这是人们回答你的问题的原因。 – theking963