1 / 4

I Esempio di trigger

I Esempio di trigger. DROP TABLE book1; DROP TABLE book_authors1; CREATE TABLE book1 ( bookid NUMBER(4), title VARCHAR2(25), publishername VARCHAR2(25)); CREATE TABLE book_authors1 ( bookid NUMBER(4), authorname VARCHAR2(20)); COMMIT;.

lelia
Download Presentation

I Esempio di trigger

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. I Esempio di trigger

  2. DROP TABLE book1; DROP TABLE book_authors1; CREATE TABLE book1 ( bookid NUMBER(4), title VARCHAR2(25), publishername VARCHAR2(25)); CREATE TABLE book_authors1 ( bookid NUMBER(4), authorname VARCHAR2(20)); COMMIT;

  3. CREATE OR REPLACE TRIGGER "GIOVANNA"."INS1" BEFORE INSERT ON "GIOVANNA"."BOOK1" FOR EACH ROW declare ii varchar2(4); begin insert into book_authors1 values(5, 'Anne'); END;

  4. insert into book1 values (76, 'Bill','ooo'); select * from book_authors1; select * from book1;

More Related