编程论坛
注册
登录
编程论坛
→
SQL Server论坛
[求助]字段合并问题,请大家来看看
zhanghy1028
发布于 2007-10-23 10:30, 572 次点击
表1:
ID Name
1, a
2, b
表2:
otherID otherName
3, c
4, d
合并后的表:
hbID hbName
1 a
2 b
3 c
4 d
请问大家该如何实现
2 回复
#2
purana
2007-10-23 10:31
select id,name from table1
union all
select otherid,othername from table2
#3
zhanghy1028
2007-10-23 10:32
这样就可以了吗?
我去试下
1