postgreSQLコマンドチートシート
概要
これまでずっとMySQLを使用してきた私がPostgreSQLを使うことになったので、よく使うコマンドのMySQL->PostgreSQL対応表を纏めてみる。
login
psql -U username -h hostname
show databases
\l
use databasename
\c databasename
show tables
\dt
テーブル定義確認
\d table_name
exit
\q
これまでずっとMySQLを使用してきた私がPostgreSQLを使うことになったので、よく使うコマンドのMySQL->PostgreSQL対応表を纏めてみる。
login
psql -U username -h hostname
show databases
\l
use databasename
\c databasename
show tables
\dt
テーブル定義確認
\d table_name
exit
\q