分类: Mysql/postgreSQL
2010-03-17 11:19:40
join UPDATE:
UPDATE HO_User_Soho_Team A LEFT JOIN HO_User_Soho_VIP_Team B ON A.`TeamID` = B.`TeamID` SET A.`TeamState` = '0' WHERE B.`UserID`= "+userID
join DELETE:
DELETE A FROM [SH_ClosingBalance] A LEFT JOIN [SH_StoreHouse] B ON A.StoreHouseID=B.ID
WHERE B.departmentID='1000'