LoginSignup
0
0

More than 3 years have passed since last update.

PostgreSQL: スキーマを一覧表示するコマンドは `\dn`

Last updated at Posted at 2019-06-14

PostgreSQLでスキーマを一覧表示するコマンドを紹介する。

psqlコマンドで対話ターミナルを開く:

psql

対話ターミナル上で下記メタコマンドを実行すると、スキーマ一覧が表示される:

\dn

実行例

root=# \dn
List of schemas
  Name  | Owner
--------+-------
 posts  | root
 public | root
(2 rows)

覚え方

database namespaces (データベースの中の名前空間たち)

関連

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