trigger after delete is not compiling and i have no idea – Mysql
The code below is not compiling by HeidiSQL in a MYSQL base BEGIN if NOT EXISTS (SELECT * FROM pedido_itens WHERE ID_PEDIDO = OLD.ID_pedido) DELETE from pedido WHERE pedido.ID = pedido_itens.old.ID_PEDIDO; END if; END I'm trying to create a trigger…