23
25

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 5 years have passed since last update.

MySQLユーザのためのPostgreSQLチートシート

23
Posted at

情報取得系コマンド

mysql psql
show tables \dt
desc table \d+ table
もしくは
select * from pg_table_def where tablename = <tablename>
show index select * from pg_indexes
show processlist select * from pg_stat_activity
show variables show ALL;
desc <query> explain <query>

CLIコマンドラインオプション

mysql psql
-u, --user -U, --username
-P, --port -p, --port
-p, --password -W, --password
-h, --host -h, --host
23
25
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
23
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?