Test for existence of Table - Mailing list pgsql-general

From Soma Interesting
Subject Test for existence of Table
Date
Msg-id 5.0.0.25.0.20010104113639.02e3d7e8@pop.telus.net
Whole thread Raw
In response to RE: Table msysconf  (Michael Davis <mdavis@sevainc.com>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: connecting in shell scripts ??
Next
From: Larry Rosenman
Date:
Subject: Re: connecting in shell scripts ??