Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这个查询不正确,但我应该怎么写呢?
UPDATE OFFER SET IF(St != 3, St = 2 AND View = '$userupdate' AND Date_V_E = '$date', '') WHERE Id = '$entryID'
IF应该是这样的:
IF
if(St != 3){ St = 2; View = '$userupdate'; Date_V_E = '$date'; }else{ //DO NOTHING }
UPDATE OFFER SET St = 2, View = '$userupdate', Date_V_E = '$date' WHERE Id = '$entryID' and St <> 3