在临时表中插入字段的方法

来源:互联网 发布:音乐变调软件 编辑:程序博客网 时间:2024/04/30 10:10

方法一:           

select cast(0 as int) as order_count,b.area_name,.............. into #tbl

 

方法二:

alter table #tbl add test int


方法三:

select *,cast('' as varchar(20)) as abc into #tbl_ccc from #tbl


 

 

 

 

 

0 0
原创粉丝点击