14 lines
407 B
SQL
14 lines
407 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn2008`.`article_available_single`(IN v_wh TINYINT, IN v_date DATETIME, IN id_single INT)
|
|
BEGIN
|
|
|
|
/* CALL bionic_available_single (v_wh, v_date,id_single,0);*/
|
|
|
|
|
|
SELECT available AS minimo FROM tmp.item
|
|
WHERE item_id = id_single;
|
|
-- ixen totes les linies en lloc d'una sola
|
|
DROP TEMPORARY TABLE IF EXISTS tmp.item;
|
|
END$$
|
|
DELIMITER ;
|