\d $ 1 create procedure yanshi(in arg tinyint) begin declare age tinyint default 0; set age=arg; if age<20 then select '小于20的数'; elseif age>20 then select '大于20的数'; end if; end $ //调用过程 set @num=12$ call yanshi(@num)$ call yanshi(21)$
create procedure a(in id int) begin select id; set id = 100; end $ set @id=1$ call a(@id)$ //输出1 即从外部传进来的@id 的值 select $id$ //输出1 说明存储过程中没有改变传进的值
create procedure b(out id int) begin select id; set id = 100; end $ set @id=1$ call b(@id)$ //输入null select @id$ //输出100
create procedure addbank() begin declare i int default 0; set i = 5000000; while i > 0 do insert into bank (name) values (i); set i = i - 1; end while; end $ call addbank()$
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2026 源码网商城 (www.ymwmall.com) 版权所有