Delete a child and a parent row with one SQL script

前端 未结 7 646
执念已碎
执念已碎 2021-01-04 00:30

Instead of deleting the child row and then writing another sql statement to delete the parent row I wanted to use one statement which will do both. FYI: we use Oracle databa

7条回答
  •  萌比男神i
    2021-01-04 00:50

    After some really bad experiences with this problem on a relatively big and extremely critical database, I decided to make a Silver bullet for it! because I couldn't find any! Actually, none of the solutions/answers in this thread meet the problem's needs.

    See CASCADELETE repo on my github.

提交回复
热议问题