LoginSignup
0
0

【VSCode+SpringBoot】SpringBootでAPIを作る②

Posted at

前回↓

はじめに

今回はデータベースのテーブル作成をする

PostgreSQL

PostgreSQLは、拡張性とSQL準拠を強調するフリーでオープンソースの関係データベース管理システム

pgAdmin4

pgAdmin4PostgreSQLを直感的に操作するために便利なアプリケーション

テーブル作成

「parson」というテーブルを以下の内容で作る

Attribute DataType Size Primary Key Not NULL default
id serial
name varchar 20
age integer

確認する
image.png
image.png

データ挿入

以下の内容をpersonに挿入する

id name age
1 taro 20
2 sakura 14
3 nobuyuki 55

確認する
image.png

これでデータベースの作成及びテーブルの設定は完了

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