时间:2021-07-01 10:21:17 帮助过:34人阅读
use xscj declare @xm varchar(10) if (select avg(成绩) from xs_kc where 学号= ‘2012130101’ ) > 85 begin select @xm= 姓名 from xsqk where 学号= ‘2012130101’ print @xm + ‘考出了高分‘ end else print ‘考得一般‘
declare @i int, @sum int select @i = 1, @sum = 0 while @i < 100 begin set @sum = @sum + @i set @i = @i +2 end print ‘奇数和为:‘+ str(@sum)
waitfor delay ’00:00:06’ use xscj select * from xsqk go waitfor time ’16:15:30’ use xscj select * from xs_kc
第17讲++T-SQL流程控制语句
标签:wait div log time http arch char weight where