« やる夫がUSB CD-Rom ドライブの認識に苦戦しているようです。 | トップページ | やる夫がmod_proxy_balancerを利用するようです。 »

2008-01-07

[postgresql] やる夫がデータベースを削除するようです。

postgresql データベース削除

$ dropdb [database name]

オプションとかは知りません。コレだけだと寂しいので削除例を・・・。
       ____
     /ノ   ヽ、_\
   /( ●)}liil{(●)\
  /    (__人__)   \   やらない夫まじムカつくお!
  |   ヽ |!!il|!|!l| /   |             削除してやんよ!
  \    |ェェェェ|     /

$ psql
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# \l
               List of databases
          Name          |  Owner   | Encoding
------------------------+----------+----------
postgres                | postgres | UTF8
template0               | postgres | UTF8
template1               | postgres | UTF8
yaranaio_db             | postgres | UTF8

(4 rows)

  • \l はデータベース一覧表示

”yaranaio_db”というデータベースを削除してみます。

$ dropdb yaranaio_db
$ psql
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# \l
               List of databases
          Name          |  Owner   | Encoding
------------------------+----------+----------
postgres                | postgres | UTF8
template0               | postgres | UTF8
template1               | postgres | UTF8

(3 rows)

----------------------------------------

オープンソースを使ったデータベースの構築―ApacheサーバとPostgreSQLでデータベース
藤田 泰徳 山崎 文則
セレンディップセレンディップセレンディップ
定価 : ¥ 3,675
2000-09
amazonで詳しく見る

|

« やる夫がUSB CD-Rom ドライブの認識に苦戦しているようです。 | トップページ | やる夫がmod_proxy_balancerを利用するようです。 »

PostgreSQL」カテゴリの記事

コメント

コメントを書く



(ウェブ上には掲載しません)




トラックバック

この記事のトラックバックURL:
http://app.f.cocolog-nifty.com/t/trackback/488651/9762647

この記事へのトラックバック一覧です: [postgresql] やる夫がデータベースを削除するようです。:

« やる夫がUSB CD-Rom ドライブの認識に苦戦しているようです。 | トップページ | やる夫がmod_proxy_balancerを利用するようです。 »