下面的查询是否正确且更具体TransferTime < (GetDate() - 3
?
$num_rows = $db->doQuery('
SELECT Class, TransferTime
FROM USERDATA
WHERE strUserId = ?
AND (TransferTime < (GetDate() - 3) OR TransferTime IS NULL)
', $character);
它会检查strUserID
andtransfertime
是否小于 3 天,因为它在 3 天时并不能真正工作吗?