Re: BUG #5254: can't drop a table

Поиск
Список
Период
Сортировка
Искать
От
Devrim GÜNDÜZ
Тема
Re: BUG #5254: can't drop a table
Дата
Msg-id
1261693211.2594.17.camel@hp-laptop2.gunduz.org
Ответ на
Список
Дерево обсуждения
BUG #5254: can't drop a table "fwoncn" <fwoncn@gmail.com>
Re: BUG #5254: can't drop a table Devrim GÜNDÜZ <devrim@gunduz.org>
Re: BUG #5254: can't drop a table Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
On Wed, 2009-12-23 at 15:49 +0000, fwoncn wrote:
> I created a table named 'order' which is a reserved word in SQL by
> mistake in the pgAdmin bundled with the official distribution. and now
> a can't drop it in whatever way. in pgAdmin, the program hangs up when
> i click on that table. and i can't drop it using the SQL line: drop
> table order, cuz order is a reserved word and it's a wrong command.

Add double quotes around order:

DROP TABLE "order";

-- 
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com 
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz
В списке pgsql-bugs по дате отправления
От: Heikki Linnakangas
Дата:
От: Matteo Beccati
Дата:
FAQ