1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SQL(副問合せ)

Posted at

副問合せ

「SELECT文のWHERE」にさらに、SELECT文を組み込み、抽出した結果を条件として再度抽出すること。

NOT IN

( )に含まれない行を抽出する。

EXISTS

相関副問合せとは、主問合せから副問合せに一行ずつ渡し、存在の有無を判断して「真」か「偽」の結果を、副問合せから主問合せに繰り返しながら抽出すること。
EXISTSは、存在の時「真」無い時「偽」を返す。

NOT EXISTS

存在の時「偽」無い時「真」を返す

組込みSQL

C言語などのプログラム内でSQLを記述し、関係データベースの操作をプログラムから行うこと。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?