20 lines
329 B
SQL
20 lines
329 B
SQL
USE `hedera`;
|
|
DROP procedure IF EXISTS `basketAddItem`;
|
|
|
|
DELIMITER $$
|
|
USE `hedera`$$
|
|
CREATE DEFINER=`root`@`%` PROCEDURE `basketAddItem`(
|
|
vWarehouse INT,
|
|
vItem INT,
|
|
vAmount INT)
|
|
BEGIN
|
|
DECLARE vOrder INT;
|
|
|
|
SET vOrder = myBasketGetId();
|
|
|
|
CALL orderAddItem(vWarehouse, vItem, vAmount, vOrder);
|
|
END$$
|
|
|
|
DELIMITER ;
|
|
|