雙主鍵,,查詢不在另一個表中的記錄

nighthun發表於2007-09-17

select yw.ywlb,yw.lx,ms
from csb_ywlb yw
left outer join XTB_JSSJQX js
on yw.ywlb = js.ywlb
and jsdh = #roleId#
where jsdh is null

雙主鍵,,查詢不在另一個表中的記錄

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/106943/viewspace-969722/,如需轉載,請註明出處,否則將追究法律責任。

相關文章