How to add cascade delete in oracle when the foreign key is on the same table?

I can't recall if this will work or not, but my first impulse is to say set parent_id=NULL for the root.

Oh sure...post the answer right after I figure it out and right before I post it ;) – testing123 Apr 7 at 23:53.

Figured it out. The key (no pun intended) is to make your parent_id nullable and then set your root to be null.

Sql - How to add cascade delete in oracle when the foreign key is on the same table - Stack Overflow.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions