salix/db/routines/vn/triggers/ticketParking_beforeInsert.sql

11 lines
210 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`ticketParking_beforeInsert`
BEFORE INSERT ON `ticketParking`
FOR EACH ROW
BEGIN
SET NEW.workerFk = vn.getUser();
END$$
DELIMITER ;