I have 3 MySQL tables (food, apple, and orange).
food
apple
orange
I want to delete rows from:
apple(idapple, iduser, name) ora
Something simpler maybe?
DELETE f,a,o FROM food AS f LEFT JOIN apple AS a USING (iduser) LEFT JOIN orange AS o USING (iduser) WHERE f.name = ...
No trigger needed.