当前位置:Gxlcms > 数据库问题 > mysql数据库执行存储过程问题

mysql数据库执行存储过程问题

时间:2021-07-01 10:21:17 帮助过:13人阅读

---------------------------- -- Procedure structure for `proc_adder` -- ---------------------------- DROP PROCEDURE IF EXISTS `proc_adder`; DELIMITER ;; CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_adder`(IN a int, IN b int, OUT sum int) BEGIN #Routine body goes here... DECLARE c int; if a is null then set a = 0; end if; if b is null then set b = 0; end if; set sum = a + b; END ;; DELIMITER ;

 

mysql数据库执行存储过程问题

标签:sql语句   class   div   .com   sql数据库   end   一个   定义   执行存储过程   

人气教程排行