RE: Test for existence of Table - Mailing list pgsql-general

From Craig L. Ching
Subject RE: Test for existence of Table
Date
Msg-id E1B42CFD544FD31193EE0000E87C5CE7710157@mailserver2.mqsoftware.com
Whole thread Raw
In response to Test for existence of Table  (Soma Interesting <dfunct@telus.net>)
List 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 by date:

Previous
From: Anand Raman
Date:
Subject: pg_dump return status..
Next
From: Matthew
Date:
Subject: RE: pg_dump return status..