我試圖回答這個問題:PL/SQL觸發器-firing問題3
創建一個顯示「插入書」每次插入後觸發。
我嘗試:
create trigger insert_book after insert on Books
for each rows
begin
insert into books (id_book,title) values(12,'book12');
end;
我試圖回答這個問題:PL/SQL觸發器-firing問題3
創建一個顯示「插入書」每次插入後觸發。
我嘗試:
create trigger insert_book after insert on Books
for each rows
begin
insert into books (id_book,title) values(12,'book12');
end;
試試這個....觸發
CREATE TRIGGER insert_book ON [dbo].[Books]
FOR INSERT
AS
insert into books (id_book,title) values(12,'book12');
PRINT 'Insert Book'
GO
不會是插入的書籍無限數量? –