我想更新一个表。
我的表结构是:
MainTable:id | status | type | userOtherTable:id | flag
在这里,我想更新所有status和不包括 where和 where on not setuser的字段ie ,但是如何?MainTablestatus='Stop'flagOtherTable0
OtherTable仅持有价值type='EMP'。
更新:我想在MainTable何时使用条件检查更新所有记录type ='EMP'