if object_id('#tempdriveinfo') is not null
   drop table #tempdriveinfo
create table #tempdriveinfo 
(   
  [driveinfoid] tinyint identity primary key not null,
  [drivename] nvarchar(10)    
)  
declare @firstcapitalletters int
set @firstcapitalletters = 65  
   
while @firstcapitalletters <= 90
begin
    insert into  #tempdriveinfo ([drivename]) values (char(@firstcapitalletters))
    set @firstcapitalletters = @firstcapitalletters + 1
end
select * from  #tempdriveinfo

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-11-06
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2022-01-23
  • 2022-02-07
  • 2021-12-31
  • 2022-01-17
  • 2022-02-14
相关资源
相似解决方案