摘要:输入:declare @a intset @a = 0while @a<=10000 begin begin try print 'Convert(varchar,Getdate(),' + cast(@a as varchar) + ') -> ' + Convert(varchar, Getdate() , cast(@a as int)) end try begin catch --print cast(@a as varchar) + ': Error' end catch set @a = @a+1end输出:Convert 阅读全文
posted @ 2013-06-14 14:54 suifei 阅读(433) 评论(0) 推荐(1) 编辑