16 lines
380 B
MySQL
16 lines
380 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`warehouseFitting_byTravel`(IN vTravelFk INT)
|
||
|
BEGIN
|
||
|
|
||
|
DECLARE vWhOrigin INT;
|
||
|
DECLARE vWhDestiny INT;
|
||
|
|
||
|
SELECT warehouseInFk, warehouseOutFk INTO vWhDestiny, vWhOrigin
|
||
|
FROM vn.travel
|
||
|
WHERE id = vTravelFk;
|
||
|
|
||
|
CALL vn.warehouseFitting(vWhOrigin, vWhDestiny);
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|