I'm doing some tests and I relate to the bands and albums tables with the foreign key. I tried deleting a row with a foreign key, but this returned parent row error My Code:
DELETE FROM BANDS WHERE idBand = '13 ';
DELETE FROM albums WHERE albumId = '13 ';
albumId is the idBand foreign key
So, how to delete a foreign key row with condition?