Hey,
I have table A and B that has many to many relation (Table C is the many to many)
I want that when i delete records from A, the records from C and B will also delete.
I set on delete cascade in C table FK (for A and B)
but when i delete records from A it delete only A,C.
Is there any way to delete A,B,C when i delete records from A???
I know that the problem is that this is many to many , so there is an option that some records from B will be delete despite the fact that they have also relation with records that has not deleted, but i dont care to delete those records.
Thank you.
I have table A and B that has many to many relation (Table C is the many to many)
I want that when i delete records from A, the records from C and B will also delete.
I set on delete cascade in C table FK (for A and B)
but when i delete records from A it delete only A,C.
Is there any way to delete A,B,C when i delete records from A???
I know that the problem is that this is many to many , so there is an option that some records from B will be delete despite the fact that they have also relation with records that has not deleted, but i dont care to delete those records.
Thank you.