2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-01-25 16:33:54 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`putOrder_beforeInsert`
|
2024-01-15 11:31:03 +00:00
|
|
|
BEFORE INSERT ON `putOrder`
|
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
|
|
|
|
DECLARE nextID INT;
|
|
|
|
|
|
|
|
SELECT 1 + MAX(id) INTO nextID FROM putOrder ;
|
|
|
|
|
|
|
|
SET NEW.orderTradelineItemID = nextID;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|