From: Jason Watkins <jason_watkins@pobox.com>
To: pgsql-sql@postgresql.org
Subject: drop table if exists
Date: Tue, 3 Jul 2001 14:24:29 -0700
Message-ID: <018b01c10406$8bcbaae0$426f2a40@boondocksaint> (raw)
How can I duplicate the behavior of:
DROP TABLE IF EXISTS mytable;
CREATE TABLE mytable (
blah,
blah
);
INSERT INTO mytable
(blah)
VALUES
(blah);
in other words, so that I have a single sql file that restores the database
to a known state.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jason_watkins@pobox.com
Subject: Re: drop table if exists
In-Reply-To: <018b01c10406$8bcbaae0$426f2a40@boondocksaint>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox