How do I delete row with primary key using foreign key from other table?
问题 I have a table called 'agenda' //translation: dairy with the following rows: idagenda // primary key title waar organisatie ... etc. ... I also have a table for the date of an diary item/event called agendadatum with the following rows: id // primary key idagenda // id from other table van //from tot // till datum // date When the field 'tot' is the date from Today it will delete the rows from the database, but the rows in the 'agenda' table remain untouched. They're not deleted, because I