Re: sql scripts

From: "Priya G" <sreepriya(at)hotmail(dot)com>
To: ehc(at)linux-info(dot)net, pgsql-admin(at)postgresql(dot)org
Subject: Re: sql scripts
Date: 2003-10-20 19:50:27
Message-ID: BAY99-F37s2LKVCoOf700002d6c@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<html><div style='background-color:'><DIV>
<P>Use pg_dump -c</P>
<P>this will drop the db objects before creating them</P>
<P>Priya<BR><BR></P></DIV>
<DIV></DIV>&gt;From: Sam Carleton <EHC(at)LINUX-INFO(dot)NET>
<DIV></DIV>&gt;To: pgsql-admin(at)postgresql(dot)org
<DIV></DIV>&gt;Subject: [ADMIN] sql scripts
<DIV></DIV>&gt;Date: Sat, 18 Oct 2003 22:37:00 -0400
<DIV></DIV>&gt;
<DIV></DIV>&gt;I am new to postgres and your mailing lists, please let me know if I
<DIV></DIV>&gt;am posting in the wrong list.
<DIV></DIV>&gt;
<DIV></DIV>&gt;I am working on creating my first database in Postgres. In the
<DIV></DIV>&gt;script that will create all the tables for the firs time, I would
<DIV></DIV>&gt;like to have a conditional statement to delete a table, if it
<DIV></DIV>&gt;already exists. I know the other databases create such a condtional
<DIV></DIV>&gt;statement for you when you export the schema. What would such a
<DIV></DIV>&gt;conditional statement look like in Postgres's sql?
<DIV></DIV>&gt;
<DIV></DIV>&gt;sam
<DIV></DIV>&gt;
<DIV></DIV>&gt;---------------------------(end of broadcast)---------------------------
<DIV></DIV>&gt;TIP 3: if posting/reading through Usenet, please send an appropriate
<DIV></DIV>&gt; subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
<DIV></DIV>&gt; message can get through to the mailing list cleanly
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2749??PS=">Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! </a> </html>

Attachment Content-Type Size
unknown_filename text/html 1.5 KB

Browse pgsql-admin by date

  From Date Subject
Next Message Priya G 2003-10-20 20:46:40 encrypt function
Previous Message Naomi Walker 2003-10-20 18:38:52 Re: Restore Problem