Create Table Problem - Mailing list pgsql-sql

From Shavonne Marietta Wijesinghe
Subject Create Table Problem
Date
Msg-id 00a601c8cd4d$b7fe2080$0602a8c0@DREAM
Whole thread Raw
Responses Re: Create Table Problem
List pgsql-sql
Hello
 
I'm having some trouble checking if a table exist before i create it.
 
Example:
 
SELECT * FROM distributors
 
IF (table not found) THEN
    CREATE TABLE distributors (
        did     integer,
        name    varchar(40),
        UNIQUE(name)
    );
END IF
 
If i have a table like the above how can i identify if the table exists or not?
 
Thank You.
 
Shavonne Wijesinghe

pgsql-sql by date:

Previous
From: Steve Midgley
Date:
Subject: Re: Tsearch
Next
From: Volkan YAZICI
Date:
Subject: Re: Create Table Problem