LoginSignup
0
0

More than 5 years have passed since last update.

PostgreSQLでデータベースに接続する

Posted at

前提

既にPostgresQLに接続したことがある前提で、僕自身データベースへの入り方やコマンドをいつも忘れてしまうので、
備忘録として残しておきます。

データベース

データベース作成

$ createdb [データベース名]

データベースに入る

$ psql [database名]

データベース一覧表示

$ psql -l

データベースから切断する

# \q

テーブル

テーブル一覧表示

# \d
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