--if语句declare @i int set @i=1 if @i<0 begin set @[email protected]+1 print @i end else
--循环语句 declare @i int set @i=0 while @i<5 begin set @i= @i+1 insert into grade(classname) values(@i) end
时间: 2025-01-13 20:30:48
--if语句declare @i int set @i=1 if @i<0 begin set @[email protected]+1 print @i end else
--循环语句 declare @i int set @i=0 while @i<5 begin set @i= @i+1 insert into grade(classname) values(@i) end