12 lines
277 B
MySQL
12 lines
277 B
MySQL
|
DROP TRIGGER IF EXISTS `vn2008`.`TicketsAfterUpdate`;
|
||
|
|
||
|
DELIMITER $$
|
||
|
USE `vn2008`$$
|
||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn2008`.`TicketsAfterUpdate`
|
||
|
AFTER UPDATE ON `Tickets` FOR EACH ROW
|
||
|
BEGIN
|
||
|
|
||
|
CALL stock.queueAdd ('ticket', NEW.Id_Ticket, OLD.Id_Ticket);
|
||
|
END$$
|
||
|
DELIMITER ;
|