DROP procedure IF EXISTS `vn`.`sale_updateOriginalQuantity`; DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `vn`.`sale_updateOriginalQuantity`(vSale INT, vQuantity INT) proc: BEGIN UPDATE vn.sale SET originalQuantity = vQuantity WHERE id = vSale; SELECT * FROM vn.sale WHERE id = vSale; END$$ DELIMITER ;