6、1.07 whenjob_level=’3’thene_wage*1.06 elsee_wage*1.05 end --WHILECONTINUEBREAK declare@xint@yint@cint select@x=1@y=1 while@x<3 begin print@x--打印变量x的值 while@y<3 begin select@c=100*@x+@y print@c--打印变量c的值 select@y=@y+1 end
7、select@x=@x+1 select@y=1 end --WAITFOR --例等待1小时2分零3秒后才执行SELECT语句 waitfordelay’01:02:03’ select*fromemployee --例等到晚上11点零8分后才执行SELECT语句 waitfortime’23:08:00’SELECT select*