UPDATE car_approval a
JOIN car_distribute b ON a.id = b.APPROVAL_FOR_CAR_ID
SET a.APPROVAL_STATUS = 'approvalStatus-car-complete'
WHERE
b.ACK_STATUS = 'CarTaskStatus-EndCarTask'
and a.APPROVAL_STATUS <> 'approvalStatus-car-complete';
相关文章
- 11-122020.01-Study_update.2
- 11-12【UVA - 10474 】Where is the Marble?(排序)
- 11-12[LeetCode] 295. Find Median from Data Stream_hard tag: Heap Need to update the follow up question?
- 11-12导出数据子集:带where条件的exp导出
- 11-12SQL中WHERE子句中为什么不能使用聚合函数?
- 11-12Instruction for Update and install V2.30 MB SD Connect C4 MUX
- 11-12Invalid ON UPDATE clause for 'create_date' column
- 11-12大表 update 方式
- 11-12SQL update语句 更新和查询同一张表 冲突
- 11-12was cached in the local repository, resolution will not be reattempted until the update interval of fintech has elapsed or updates are forced