日期:2014-05-18 浏览次数:20771 次
select * from tbl union all--不去掉两个语句里的重复行 select * from tbl2 select * from tbl union--去掉两个语句里的重复行 select * from tbl2
------解决方案--------------------
楼上两位都搞错了吧 应该用LFFT JOIN
------解决方案--------------------
SELECT
ISNULL(A.Reciever,B.Reciever) AS Reciever,ISNULL(B.WCL,0),ISNULL(A.CL,0)
FROM
A FULL JOIN B
ON
A.Reciever=B.Reciever