级联更新
UPDATE "DC_DEVICE"
SET MACHINE_ID = (SELECT
MACHINE_ID
FROM
MES_MACHINE
WHERE MES_MACHINE.MACHINE_NO = "DC_DEVICE".MACHINE_ID
)
级联删除
DELETE
"MT_OVERHAUL_STANDARD_ITEM"
WHERE
STANDARD_SEQ IN (
SELECT
STANDARD_SEQ
FROM
MT_OVERHAUL_STANDARD
WHERE
DEPT_ID = 37)