有人知道为什么这会给我一个错误102和错误的语法吗?
declare @i int=20
while @i<=50
begin
try
if convert(char,getdate(),@i) is not null
begin
select convert(char,getdate(),@i)
end
set @i=@i+1
end try
begin catch
set @i=@i+1
end catch;
end
从您的缩进来看,我相信您想要BEGIN TRY
第5行。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句