2022-01-07から1日間の記事一覧

メモ:not in と not exists は等価じゃない

どっかで書いた気もするけど、null が混じったときに結果が違うよと。 select * from (values (1), (2), (3)) as a(id) where a.id not in (select * from (values (null), (2)) as b(id)) 結果無し select * from (values (1), (2), (3)) as a(id) where no…