sql語句exists用法 NOT EXISTS怎么用?
NOT EXISTS怎么用?select*fromproductwherenotexists(selectproductCodefromsomainwherestatus!="已了結(jié)")notexis
NOT EXISTS怎么用?
select*fromproductwherenotexists(selectproductCodefromsomainwherestatus!="已了結(jié)")notexists:當(selectproductCodefromsomainwherestatus!="已了結(jié)")查詢不出任何結(jié)果的時候前面的select語句才能繼續(xù)執(zhí)行查詢notin:查詢出不存在在(selectproductCodefromsomainwherestatus!="已了結(jié)")的資料