我有一个表名Service(product, loca, from_agent, to_agent)。
product参考Product(pno)
from_agent参考Customer(cno) U Driver(drno) U Airline(Ano)
to_agent参考Customer(cno) U Driver(drno) U Airline(ano)
cno = Customer Number这是另一个表名“ Customer”,其中包含其他详细信息as name, address等
drno=Driver Number这是另一个表名“ Driver”,其中包含其他详细信息,例如name, address等
ano=Airline Number这是另一个表名“ Airline”,其中包含其他详细信息,例如depport, depttime,arrtime等。
想写一个触发器来强制,product在进行任何更改之前检查表中的外键。假设局部映射透明。