add new procedure in the BD
This commit is contained in:
parent
74751e3ecd
commit
ec38ed64e5
|
@ -0,0 +1,23 @@
|
|||
USE `vn`;
|
||||
DROP procedure IF EXISTS `ticketListCreate`;
|
||||
|
||||
DELIMITER $$
|
||||
USE `vn`$$
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `ticketListCreate`(
|
||||
vClientId INT
|
||||
,vShipped DATE
|
||||
,vWarehouseId INT
|
||||
,vCompanyFk INT
|
||||
,vAddressFk INT
|
||||
,vAgencyType INT
|
||||
,vRouteFk INT
|
||||
,vlanded DATE)
|
||||
BEGIN
|
||||
|
||||
DECLARE vNewTicket INT;
|
||||
CALL vn.ticketCreate(vClientId, vShipped, vWarehouseId, vCompanyFk, vAddressFk, vAgencyType, vRouteFk, vlanded,vNewTicket);
|
||||
SELECT vNewTicket;
|
||||
|
||||
END$$
|
||||
|
||||
DELIMITER ;
|
Loading…
Reference in New Issue