Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Trigger Help

Trigger Help

From: Jeff Hunter <jeffh_at_btitelecom.net>
Date: 1998/12/11
Message-ID: <74rvqg$6rs$1@defiant.btitelecom.net>#1/1

I want to write a trigger that will update non-primary key fields in a table on an insert. For example, I have a table called CUST that has two fields, ID and NAME. The ID field is the primary key. The CUST table might look like:

ID     NAME
1     Scooby Doo
2     Scrappy Doo
3     Shaggy


When I issue "insert into CUST values (1,'Freddy'); I want the table to look like:

ID     NAME
1     Freddy
2     Scrappy Doo
3     Shaggy

Any suggestions? Received on Fri Dec 11 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US