salix/db/routines/vn/triggers/ticketParking_BEFORE_INSERT...

11 lines
213 B
MySQL
Raw Normal View History

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