1 declare @i int=1 2 begin 3 while(@i<=200) 4 begin 5 BEGIN try 6 PRint convert(varchar(3),@i)+' '+convert(VARCHAR,getdate(),@i) 7 END TRY 8 BEGIN catch 9 end catch10 set @i=@i+111 end12 end
结果:
1:11/30/142:14.11.303:30/11/144:30.11.145:30-11-146:30 11 147:11 30, 148:21:18:449:11 30 2014 9:18:44:983PM10:11-30-1411:14/11/3012:14113013:30 11 2014 21:18:44:98314:21:18:44:98320:2014-11-30 21:18:4421:2014-11-30 21:18:44.98322:11/30/14 9:18:44 PM23:2014-11-3024:21:18:4425:2014-11-30 21:18:44.983100:11 30 2014 9:18PM101:11/30/2014102:2014.11.30103:30/11/2014104:30.11.2014105:30-11-2014106:30 11 2014107:11 30, 2014108:21:18:44109:11 30 2014 9:18:44:983PM110:11-30-2014111:2014/11/30112:20141130113:30 11 2014 21:18:44:983114:21:18:44:983120:2014-11-30 21:18:44121:2014-11-30 21:18:44.983126:2014-11-30T21:18:44.983127:2014-11-30T21:18:45.030130: 8 ??? 1436 9:18:45:030PM131: 8/02/1436 9:18:45:030PM
新闻热点
疑难解答