
tJobOrderD2 a left join tBundleD b on a.DocNo=b.DocNo and a.SeqNo=b.SeqNo and a.StepNo=b.StepNo意思是查詢表tJobOrderD2 和tBundleD這兩個表 , (多表查詢) , 滿條這些條件1.查詢tJobOrderD2 表中所有數據 , 2.查詢tBundleD 表中滿足tJobOrderD2 的SeqNo等于tBundleD 中的SeqNo并且tJobOrderD2 的SeqNo等于StepNo中的StepNo3.如果tBundleD 表中沒有數據 , 則顯示為NULL即第一個表沒有限制 , 第二個條有條件限制如果兩表都要滿足ON后面的條件則使用inner join
【多表left join怎么理解啊?】
猜你喜歡
- 求骷髏宮歌留多表情包!
- 電腦right鍵在哪里
- join,join in和take part in 的區別,另外take part in 可以與什么替換?
- left是什么意思
- A good story does not necessarily have to have a happy ending,but the reader must not be left____.
- walrus joins in典范英語原文,急需!
