摘要:
输入: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 阅读全文