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
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑: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