基本的なコマンドをメモ。
DBの作成
// shouhinn というDBを生成 エンコードにutf-8を指定
createdb shouhinn -E utf-8
DBの削除
dropdb shouhinn
PostgreSQLへの接続
// shouhinnというDBに接続する
psql shouhinn
PostgreSQLからの切断
// DBを切断する
\q
テーブルを作成する
// uriage テーブルを作成
create table uriage
テーブル名を変更する
alter table uriage rename to myuriage
テーブルの削除
drop table uriage