Re: how to create or run an sql script on pgsql ?

From: simran <simran(dot)list(at)leonardchristian(dot)com>
To: Andres Ledesma <aledes(at)telefonica(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to create or run an sql script on pgsql ?
Date: 2003-02-05 23:40:49
Message-ID: 1044488449.1856.2.camel@pingu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I usually just use the shell...

Aka, put your sql commands in say sql.txt

then:

% psql yourdb < sql.txt

On Thu, 2003-02-06 at 10:31, Andres Ledesma wrote:
> Hi ,
>
> I'm wondering if there is a way to create an script from a postgresql db, or
> to run any text script on a pg db ?
>
> Any help ?
>
>
> Thanks in advance,
>
>
> Andrew.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andres Ledesma 2003-02-05 23:52:32 Re: how to create or run an sql script on pgsql ?
Previous Message Andres Ledesma 2003-02-05 23:31:32 how to create or run an sql script on pgsql ?