LoginSignup
23
25

More than 5 years have passed since last update.

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

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