在borrow表中创建触发器,当删除借阅表某个记录时,若还书日期为空,则不允许删除该记录

2024-12-23 06:35:24
推荐回答(1个)
回答1:

1楼的,别人是删除啦
create trigger 触发器名称
on reader
for delete
as
delete * from borrow where borrower.读者ID = deleted.读者ID