精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • SQL語句理解 select * from B where (select count(1) as num from A where A.ID = B.ID) = 0

    SQL語句理解 select * from B where (select count(1) as num from A where A.ID = B.ID) = 0
    select * from B where (select count(1) as num from A where A.ID = B.ID) = 0
    請問如何理解,為什么 可以在B表中 排除A表的數(shù)據(jù)
    其他人氣:159 ℃時(shí)間:2020-02-06 06:06:55
    優(yōu)質(zhì)解答
    子查詢中select count(1) as num from A where A.ID = B.ID
    就是統(tǒng)計(jì)B表和A表用ID連接的行數(shù)
    子查詢的行數(shù)=0,就可以實(shí)現(xiàn)從B表中排除A表數(shù)據(jù)子查詢只是把計(jì)數(shù)傳過去啊 主查詢?nèi)绾蔚弥唧w數(shù)據(jù)行?nono, 這么看:select * from B where ?= 0where中條件其實(shí)是,什么等于0?代入(select count(1) as num from A where A.ID = B.ID)就是A和B通過ID連接后,COUNT(*)計(jì)數(shù)=0select count(1) as num from A where A.ID = B.ID不等于0啊
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版