22,228
社区成员
发帖
与我相关
我的任务
分享
create trigger book_save
on borrow
after insert
as
insert into borrow_save
(cno,bno,rdate)
values
(
select inserted.cno,inserted.bno,inserted.rdate
from inserted,books
where books.bname='数据库技术及应用'
and inserted.bno=books.bno
)
create trigger book_save
on borrow
after insert
as
insert into borrow_save
(cno,bno,rdate)
select inserted.cno,inserted.bno,inserted.rdate
from inserted,books
where books.bname='数据库技术及应用'
and inserted.bno=books.bno
create trigger book_save
on borrow
after insert
as
insert into borrow_save
(cno,bno,rdate)
--values
(
select inserted.cno,inserted.bno,inserted.rdate
from inserted,books
where books.bname='数据库技术及应用'
and inserted.bno=books.bno
)
values多余的.create trigger book_save
on borrow
after insert
as
insert into borrow_save
(cno,bno,rdate)
select inserted.cno,inserted.bno,inserted.rdate
from inserted,books
where books.bname='数据库技术及应用'
and inserted.bno=books.bno