14 lines
247 B
MySQL
14 lines
247 B
MySQL
|
DROP procedure IF EXISTS `vn`.`sector_getWarehouse`;
|
||
|
|
||
|
DELIMITER $$
|
||
|
|
||
|
CREATE DEFINER=`root`@`%` PROCEDURE `vn`.`sector_getWarehouse`(vSectorFk INT)
|
||
|
BEGIN
|
||
|
|
||
|
SELECT s.warehouseFk
|
||
|
FROM vn.sector s
|
||
|
WHERE s.id = vSectorFk;
|
||
|
|
||
|
END$$
|
||
|
|
||
|
DELIMITER ;
|