Re: sql scripts

Поиск
Список
Период
Сортировка
От David F. Skoll
Тема Re: sql scripts
Дата
Msg-id Pine.LNX.4.58.0310201329190.5848@shishi.roaringpenguin.com
обсуждение исходный текст
Ответ на sql scripts  (Sam Carleton <ehc@linux-info.net>)
Список pgsql-admin
On Sat, 18 Oct 2003, Sam Carleton wrote:

> I am working on creating my first database in Postgres.  In the
> script that will create all the tables for the firs time, I would
> like to have a conditional statement to delete a table, if it
> already exists.

As far as I know, there is no way to do that in PostgreSQL's standard
SQL language.  But it doesn't matter -- as long as the DROP TABLE
command is in it's own transaction, you can unconditionally drop the table
and ignore any errors.

Regards,

David.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: ERserver problems
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Postgresql Memory Problem