20 lines
329 B
MySQL
20 lines
329 B
MySQL
|
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 ;
|
||
|
|