当tableB更新时,是否可以自动更新tableA中的行?
例如:
Create TableA
(
examno number not null,
hourscompleted,
Constraint examno number_PK PRIMARY KEY(examno number)
CONSTRAINT hourscompleted_FK FOREIGN KEY (hourscompleted_FK)
REFERENCES tableB (endtime- startime)
ON Update CASCADE
)
Create TableB
(
Indexno not null
starttime date,
endtime date,
Constraint INDEXNO_PK Primary Key (Indexno)
)
其次,我能以这种方式引用tableB(endtime - startime)吗?
答案 0 :(得分:1)