我有一個問題,如果我想更新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