RE: Test for existence of Table

From: "Craig L(dot) Ching" <cching(at)mqsoftware(dot)com>
To: "'Soma Interesting'" <dfunct(at)telus(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: RE: Test for existence of Table
Date: 2001-01-04 23:37:33
Message-ID: E1B42CFD544FD31193EE0000E87C5CE7710157@mailserver2.mqsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yeah,

DROP TABLE employees
CREATE TABLE employees

;-)

Craig

-----Original Message-----
From: Soma Interesting [mailto:dfunct(at)telus(dot)net]
Sent: Thursday, January 04, 2001 1:40 PM
To: pgsql-general(at)postgresql(dot)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(at)telus(dot)net

Responses

Browse pgsql-general by date

  From Date Subject
Next Message norman 2001-01-04 23:40:38 looking for pg programmer/dba in seattle area
Previous Message Justin Banks 2001-01-04 22:46:33 replication woes