0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DBのJOINE, LEFT JOIN, RIGHT JOINの覚えるポイント

Last updated at Posted at 2025-01-28

実務や応用情報とかの問題でいつもDBのJOINE, LEFT JOIN, RIGHT JOINの違いが分からなくなるのでメモ📝

INNER JOIN

JOIN

1000004675.png

  • 結合できなかった行は返さない

OUTER JOIN

LEFT JOIN、RIGHT JOIN

1000004676.png

  • 結合出来なかった行も無理矢理表示される
    (NULLになることがある)
  • LEFT JOINは、「主(左)」のテーブルに従う
  • RIGHT JOINは、「従(右)」のテーブルを全て返す

参考サイト

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?