salix/db/changes/10162-postValentineDay/00-sector_getWarehouse.sql

14 lines
247 B
MySQL
Raw Normal View History

2020-03-30 12:28:29 +00:00
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 ;