标题:请教问题?
只看楼主
qin5534
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-8-25
 问题点数:0 回复次数:0 
请教问题?

SELECT a.sBillNo AS sId,a.sBomName,a.sProductId,b.sName,'' AS sParentId,a.iCheck
FROM Rad_Bom a LEFT JOIN BS_Item b ON a.sProductId= b.sId
UNION
SELECT c.sBillNo AS sId,c.sBomName,c.sProductId,d.sName,a.sBillNo AS sParentId,c.iCheck
FROM Rad_Bom a LEFT JOIN ( Rad_Bom_Detail b
LEFT JOIN Rad_Bom c ON b.sItemId=c.sProductId
LEFT JOIN BS_Item d ON d.sId=b.sItemId ) ON a.sBillNo=b.sBillNo
WHERE c.sBillNo IS NOT NULL

请问各位大侠给小弟解释一下上面语句的作用,急!!!! 谢谢!!!!!


2007-08-25 08:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-165277-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.846172 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved