I have a database which contains around 50 tables.
Suppose I have a table named parent with id primary key and 24 approx child tables with reference to this parent table.
I haven't used on delete cascade.
I have already searched about doing joins can perform delete in all child table. But join on 20-30 tables? Its too much.
Please let me know is there any other solution to delete all this child rows if parent get deleted.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…