create table #t(a char(20),b char(20)) create table xinbiao (a char(20)) select b from biao insert into #tselect a from biao insert into #tselect * from #t insert into xinbiao
select 字段1 from 表名 union all select 字段2 from 表名
select 字段1 from 表名 union all select 字段2 from 表名
select 字段1 from 表名 union all select 字段2 from 表名 ---字段的名称将是第一个表的字段名/别名
union
select 字段2 from 表名
create table xinbiao (a char(20))
select b from biao insert into #tselect a from biao insert into #tselect * from #t insert into xinbiao
union all
select 字段2 from 表名
union all
select 字段2 from 表名
union all
select 字段2 from 表名
---字段的名称将是第一个表的字段名/别名
----------------------
《CSDN论坛新助手 CSDN's forum Explorer》
1、更快速的浏览
2、更方便地保存
3、更快捷的收/发短信
下载地址:http://www.seeyou.com.cn/CoolSlob/CSDNExplorer.exe
更多说明:http://community.csdn.net/Expert/TopicView.asp?id=3255966
union all
select 字段2 from 表名