RE: Test for existence of Table

Поиск
Список
Период
Сортировка
От Craig L. Ching
Тема RE: Test for existence of Table
Дата
Msg-id E1B42CFD544FD31193EE0000E87C5CE7710157@mailserver2.mqsoftware.com
обсуждение исходный текст
Ответ на Test for existence of Table  (Soma Interesting <dfunct@telus.net>)
Список pgsql-general
Yeah,

DROP TABLE employees
CREATE TABLE employees

;-)

Craig

-----Original Message-----
From: Soma Interesting [mailto:dfunct@telus.net]
Sent: Thursday, January 04, 2001 1:40 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Test for existence of Table


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 по дате отправления:

Предыдущее
От: Anand Raman
Дата:
Сообщение: pg_dump return status..
Следующее
От: Matthew
Дата:
Сообщение: RE: pg_dump return status..