Test for existence of Table

Поиск
Список
Период
Сортировка
От Soma Interesting
Тема Test for existence of Table
Дата
Msg-id 5.0.0.25.0.20010104113639.02e3d7e8@pop.telus.net
обсуждение исходный текст
Ответ на RE: Table msysconf  (Michael Davis <mdavis@sevainc.com>)
Список pgsql-general
Can I test for an existing table before issuing the "CREATE TABLE" command?

IF EXISTS employees{
         DROP TABLE employees
}
CREATE TABLE employees

Can you provide an example of this. I couldn't find this in the manual or
Bruce's book - did I not look hard enough ? :)


-          -          -          -          -          -          -
  -          -          -          -
WARNING: Some experts believe that use of any keyboard may cause
serious injury. Consult Users Guide.
                                                                                       dfunct@telus.net


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: connecting in shell scripts ??
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: connecting in shell scripts ??