2022-08-27から1日間の記事一覧
WHERE句にEXISTSと書いてそれにつづけてサブクエリをかく。 各行について条件に一致するものがあるとEXISTSが真になるからその行が抽出される、みたいな感じ。 drop table if exists A; drop table if exists B; create table A (id integer, name text); cr…
WHERE句にEXISTSと書いてそれにつづけてサブクエリをかく。 各行について条件に一致するものがあるとEXISTSが真になるからその行が抽出される、みたいな感じ。 drop table if exists A; drop table if exists B; create table A (id integer, name text); cr…