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?

More than 1 year has passed since last update.

【#25 エンジニア転職学習】DB入門 MySQLのView / Join

Posted at

はじめに

富山県に住んでいるChikaといいます。
毎日投稿を目標に、バックエンドエンジニア転職に向けた学習内容をアウトプットします。

DBの入門をざっくり学習していきます。

バックエンドエンジニアになるまでの学習内容は以前投稿した以下の記事を基にしています。

本日の学習内容

本日はMySQLのviewとjoinを学習しました。

  • view / join ←Topics!!

view / join

view

データを格納せずに必要な行・列を表示できる。
また、削除しても元のテーブルに影響をあたえない点がメリットです。
「どの行に対応しているか」「何の値を入れたらいいか」わからない場合はviewの更新はできません。

join

1つのテーブルの列だけではデータが足りない時に、他のテーブルから列を持ってくる操作。
指定したテーブルのうち、「どちらかは全行表示・もう一方は値があれば表示したい」ときは外部結合(OuterJoin)を使用する。

使用している教材はこちら↓

おわりに

最後までお読みいただきありがとうございました。
アドバイス・応援コメント等いただけますと幸いです。

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?