Found the reason. There was records in A, which has NULL values in A.id_b . That's why query: SELECT COUNT(b.id) FROM B b WHERE b.id NOT IN ...
確定! 回上一頁