“INSERT”页面:
INSERT INTO T_Dept (DEPTNAME,DEPTCODE) VALUES (EPTNAME,EPTCODE )
INSERT INTO T_Vehicle (DEPTCODE,VEHICLECODE) VALUES (EPTCODE,:VEHICLECODE)
“UPDATE”页面:
UPDATE T_Dept SET DEPTNAME = EPTNAME,DEPTCODE = EPTCODE
WHERE (DEPTNAME = :OLD__DEPTNAME) AND (DEPTCODE = :OLD__DEPTCODE)
UPDATE T_Vehicle SET DEPTCODE = EPTCODE,VEHICLECODE = :VEHICLECODE
WHERE (DEPTCODE = :OLD__DEPTCODE) AND (VEHICLECODE = :OLD__VEHICLECODE)
“DELETE”页面:
DELETE FROM T_Dept WHERE (DEPTNAME = :OLD__DEPTNAME) AND (DEPTCODE = :OLD__DEPTCODE)
DELETE FROM T_Vehicle WHERE (DEPTCODE = :OLD__DEPTCODE) AND (VEHICLECODE = :OLD__VEHICLECODE)