此A表中有28條數據,
此B表400+W,做連接查詢時,想知道A表中有哪些數據在B表中沒有出現,於是先
SELECT id_card from bd_psnbasdoc_copy2 where householder_id_card not in (SELECT householder_id_card from bd_psnbasdoc)
得到結果爲
然後去掉not 再運行一遍,結果爲
22條記錄,發現竟然有6條是沒有在這個語句裏的。
那麼爲什麼not in 一條數據都沒有呢?