Re: DROP TABLE IF EXISTS

Поиск
Список
Период
Сортировка
От William Yu
Тема Re: DROP TABLE IF EXISTS
Дата
Msg-id cljf66$2prf$1@news.hub.org
обсуждение исходный текст
Ответ на Re: DROP TABLE IF EXISTS  (Steven Klassen <sklassen@commandprompt.com>)
Ответы Re: DROP TABLE IF EXISTS  (Jaime Casanova <systemguards@yahoo.com>)
Список pgsql-novice
I'm not sure why this even matters. You do DROP TABLE on a table that
doesn't exist, all that will happen is that you will get an error back
but your program will continue on it's merry way anyways. The only thing
IF EXISTS would give you is the suppression of the error message.


Steven Klassen wrote:

> * Sean Davis <sdavis2@mail.nih.gov> [2004-10-21 12:26:47 -0400]:
>
>
>>I am wondering how to do this simple mysql task in postgres.  Any
>>hints?
>
>
> This reply from Ron Johnson seems to suffice:
>
> http://archives.postgresql.org/pgsql-interfaces/2002-05/msg00102.php
>

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

Предыдущее
От: Ron St-Pierre
Дата:
Сообщение: Re: [pgfsupport - Help] RE: A big red x
Следующее
От: "Davis, Sean (NIH/NHGRI)"
Дата:
Сообщение: Re: DROP TABLE IF EXISTS