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

Home -> Community -> Usenet -> c.d.o.misc -> Re: ON UPDATE CASCADE

Re: ON UPDATE CASCADE

From: jviver <jviver_at_earthlink.net>
Date: Fri, 14 Aug 1998 12:35:17 -0700
Message-ID: <35D49175.6D798956@earthlink.net>


http://www.oracle.com/st/products/features/cascade.html

Markku Heikkilä wrote:

> I got two tables table1 and table2. Table1 is master and table2 is detail.
> Table1 get its primary key from sequence se_tab1. Below are scripts...
>
> create table1(
> id number(5) primary key,
> part varchar2(20)
> );
>
> create table2(
> id number(5)
> ....
> foreign key (id) references table1(id) on update cascade
> );
>
> ETC. I need to insert same id to table2 when id number is fetched to table1
> from sequence.
>
> Now on update cascade doesnt seem to work in Oracle. So how Do I implement
> similar action via trigger. I tried it but didnt get it to work....
>
> Greetings from Finland
> Markku
>
Received on Fri Aug 14 1998 - 14:35:17 CDT

Original text of this message

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