正在加载图片...
912存储过程的创建 create procedure multi as declare @i int, @j int, @out varchar(80 set @i=1 while @i<=9 begin set @out =cast(@i as char(1))+) set @j=1 while @j<=@i begin set @out=@out+cast(@i as char(1)+*+cast(@jas char(1))+'='+cast(@i*@j as char(2))+space (2 set @j =@j+1 end print @out set @i=@i+1 end9.1.2 存储过程的创建 create procedure multi as declare @i int,@j int,@out varchar(80) set @i=1 while @i<=9 begin set @out =cast(@i as char(1))+') ' set @j=1 while @j<=@i begin set @out=@out+cast(@i as char(1))+'*'+cast(@j as char(1))+'='+cast(@i*@j as char(2))+space(2) set @j=@j+1 end print @out set @i=@i+1 end
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有