sql server 2005 联合查询语句怎么写的?

来源:百度知道 编辑:UC知道 时间:2024/06/26 01:38:31

select 0
union

select 1

看下是不是你 想要的结果

select * from t1 left join t2 on t1.id=t2.id

select 1
interact union union all --union 自动排除1 2 有重复的纪录 union all 所有的一起并合
select 2