Re: IF EXISTS

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: IF EXISTS
Date: 2006-09-21 05:45:40
Message-ID: 20060921054540.GB4698@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 20, 2006 at 04:12:16PM -0700, Jeff Davis wrote:

> In 8.2, which is currently still in production, they have added the
> feature where you can do things like:
>
> DROP SEQUENCE IF EXISTS mysequence;
> CREATE SEQUENCE mysequence;
>
> Which makes writing SQL scripts much easier. They also made it work for
> other objects, like DROP TABLE IF EXISTS, etc.
Hurra !

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harald Armin Massa 2006-09-21 06:49:02 Re: postgresql rising
Previous Message Michael Fuhr 2006-09-21 03:23:58 Re: column names in select don't exists in insert to