[pgsql-jp: 35085] Re: テーブルを削除するには?
ISHIDA Akio
iakio @ mono-space.net
2005年 3月 22日 (火) 23:33:03 JST
こんにちは。石田@苫小牧市です。
misoyuki wrote:
> misoyukiです。
> またまたお世話になります。
>
> このような構成のDB toshoから
>
> List of relations
> Schema | Name | Type | Owner
> --------+-------------------------+-------+-------
> public | Address | table | pgsql
> public | Author | table | pgsql
> public | Books_ledger | table | pgsql
> public | Classification | table | pgsql
> public | Loan | table | pgsql
> public | Note | table | pgsql
> public | Publishing_company | table | pgsql
> public | Shelf | table | pgsql
> public | Summary | table | pgsql
> public | Telephone_number | table | pgsql
> public | The_master_for_an_input | table | pgsql
> public | User | table | pgsql
> (12 rows)
> から
> public | Loan | table | pgsql
> を削除したく
> $ psql tosho
> => drop table Loan;
> としても削除できません。
> どうすればよいのでしょうか?
テーブル名、フィールド名などに大文字小文字が
まざっている場合はダブルクォートで括ります。
drop table "Loan";
--
ISHIDA Akio <iakio @ mono-space.net / ishida @ cycleof5th.com>
pgsql-jp メーリングリストの案内