Re: how to create or run an sql script on pgsql ? - Mailing list pgsql-novice

From simran
Subject Re: how to create or run an sql script on pgsql ?
Date
Msg-id 1044488449.1856.2.camel@pingu
Whole thread Raw
In response to how to create or run an sql script on pgsql ?  (Andres Ledesma <aledes@telefonica.net>)
Responses Re: how to create or run an sql script on pgsql ?
List 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@postgresql.org



pgsql-novice by date:

Previous
From: Andres Ledesma
Date:
Subject: how to create or run an sql script on pgsql ?
Next
From: Andres Ledesma
Date:
Subject: Re: how to create or run an sql script on pgsql ?