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 -> "ON DELETE CASCADE" references more than one table

"ON DELETE CASCADE" references more than one table

From: Wei Jiang <_weijiang__at_yahoo.com>
Date: 2 Mar 2003 06:59:52 -0800
Message-ID: <a2ba1fb3.0303020659.3503a56e@posting.google.com>


Hi All,

I have a table

CREATE TABLE address (..., ownerId int, ...)

I alse have many other tables, such as employee, contractor, vender.... All of these table can own an address.

What is the best way to delete an address if I delete an employee or contractor?

I can not use

FOREIGN KEY (customerId) REFERENCES customer (id)

on address, because I can only reference customer, not employee or contractor.

Any information would be appreciated. Thanks in advance. Received on Sun Mar 02 2003 - 08:59:52 CST

Original text of this message

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