Byrd24
08-12-2003, 05:20 PM
Can someone please help me with the following problem:
SQL> create table guidry_l
2 (student_id number(4) not null,
3 first_name varchar2(25),
4 last_name varchar2(25),
5 address varchar2(40),
6 zip number(5),
7 phone varchar2(12),
8 registration_date date not null,
9 constraint guidry_l_pk primary key(student_id));
SQL> create or replace view lguidry_view as
2 select student_id, registration_date
3 from guidry_l;
I have to create an INSTEAD OF trigger defined on the view created above. This trigger will update the student w/ student_id of 1000 and set the registration date to August 12, 2003.
My textbook doesn't really explain how to create an INSTEAD OF trigger using the UPDATE.
SQL> create table guidry_l
2 (student_id number(4) not null,
3 first_name varchar2(25),
4 last_name varchar2(25),
5 address varchar2(40),
6 zip number(5),
7 phone varchar2(12),
8 registration_date date not null,
9 constraint guidry_l_pk primary key(student_id));
SQL> create or replace view lguidry_view as
2 select student_id, registration_date
3 from guidry_l;
I have to create an INSTEAD OF trigger defined on the view created above. This trigger will update the student w/ student_id of 1000 and set the registration date to August 12, 2003.
My textbook doesn't really explain how to create an INSTEAD OF trigger using the UPDATE.