Conditional Statement - Mailing list pgsql-general

From Samik Raychauhduri
Subject Conditional Statement
Date
Msg-id 3C82CA4C.6030205@cae.wisc.edu
Whole thread Raw
List pgsql-general
Hello,
I am trying to write a piece of SQL code, which will first check if a
table exist, drop it and then recreate it. I didn't see any 'IF' syntax
in pgsql. Is there any other alternative? I tried to use 'case'
structure, but didn't succeed.
Thanks and regards.
-Samik


pgsql-general by date:

Previous
From: "Andrew Bartley"
Date:
Subject: April 1
Next
From: Tom Lane
Date:
Subject: Re: April 1