Delimiter //
CREATE TRIGGER disminuir_cantidades
AFTER INSERT ON inventario for each row
begin
DECLARE _salida int;
DECLARE _ID_Inventario int;
SET _salida =NEW.Salida ;
SET _ID_Inventario=NEW.ID_Inventario;
UPDATE inventario SET Disponible =Disponible-Salida where ID_Inventario=_ID_Inventario;
end
//