Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> ON DELETE CASCADE
Hi everyone,
how is it possible to change a foreign key constraint to do the on delete cascade?
CREATE TABLE Verfahren
(verfahrenNr INTEGER PRIMARY KEY,
bezeichnung VARCHAR2(50) NOT NULL,
beschreibung VARCHAR2(500),
ziel VARCHAR2(500),
datumerstellt DATE,
erhebNr INTEGER NOT NULL,
CONSTRAINT erhebNr_verfahren FOREIGN KEY (erhebNr) REFERENCES
ERHEBUNGSMETHODE (erhebNr));
This is the table i created for a few years. Now i want to add a on delete cascade to the constraint erhebnr_verfahren. How is this possible?
ALTER TABLE Verfahren modify ...
Thanks a lot
--
Wolfgang Karrer
Büro für EDV-Dienstleistungen
Gewerbegasse 6
4060 Leonding
Tel + Fax. (0732) 681795
Mobil: (0699) 134 18 469
EMail: w.karrer_at_ooenet.at