declare @i int
set @i=1
while (@i<=44)
begin
print('Alter   Table   dbo.Old_DGS_Cross   Alter   Column   d'+convert(nvarchar(2),@i)+' nvarchar(max)')
declare @strsql nvarchar(max)
select @strsql='Alter   Table   dbo.Old_DGS_Cross   Alter   Column   d'+convert(nvarchar(2),@i)+' nvarchar(max)'
 exec(@strsql)
 set @i=@i+1
end

declare @i intset @i=1while (@i<=44)beginprint('Alter   Table   dbo.Old_DGS_Cross   Alter   Column   d'+convert(nvarchar(2),@i)+' nvarchar(max)')declare @strsql nvarchar(max)select @strsql='Alter   Table   dbo.Old_DGS_Cross   Alter   Column   d'+convert(nvarchar(2),@i)+' nvarchar(max)'
 exec(@strsql) set @i=@i+1end

 

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-11-16
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案