添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
会开车的香菜  ·  Python 插件 - Kusto | ...·  4 月前    · 
沉稳的萝卜  ·  Windows.Devices.Blueto ...·  12 月前    · 
失恋的充电器  ·  Perl的基本語法·  1 年前    · 
大气的凳子  ·  Spark ...·  1 年前    · 
冷冷的投影仪  ·  2018-02-27 ...·  2 年前    · 

测试数据:

create table test
(
value int not null
)

-----drop  table  test

insert into test (value)
select 2
union all
select 3
union all
select 2
union all
select 7
union all
select 6
union all
select 3
union all
select 5
union all
select 6
union all
select 8
union all
select 4
union all
select 9
union all
select 4
union all
select 1
union all
select 2

select  *  from  test

declare @cc int
declare @str varchar(8000)
set @cc=9999

print @cc
set @str='select value as '+'['+cast(@cc as varchar(10))+']'+'from test'
print @str

测试结果: