Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> ON DELETE SET NULL does not work???
Hi,
A am trying to alter table and add constraint
ALTER TABLE Lot
ADD FOREIGN KEY (ProductId)
REFERENCES Product (Id)
ON DELETE SET NULL;
There are no error messages.
But when I check what happens with
SELECT * FROM USER_COSNTRAINTS
WHERE Table_Name = 'LOT'
I've got 'NO_ACTION' instead of 'SET NULL' in DELETE_RULE field.
CONSTRAINT_NAME CONSTRAINT_TYPE TABLE_NAME DELETE_RULE SYS_C0075654 R LOT NO ACTION
I use Oracle 8.1.7
Regards,
Sergey Balter
Received on Wed Oct 02 2002 - 03:46:21 CDT