Re: Using sql statements in file

From: Wei Weng <wweng(at)kencast(dot)com>
To: Suresh Basandra <sureshb(at)warpera(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Using sql statements in file
Date: 2003-09-22 16:03:30
Message-ID: Pine.LNX.4.56.0309221202020.18144@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

try psql -f filename

On Mon, 22 Sep 2003, Suresh Basandra wrote:

> Hi,
>
> I would like to do the following using files:
>
> 1. put create database, create tables sql statements in a file and
> execute through prompt
> 2. insert or update data that is put in a file
>
> Please let me know if there are any examples that lists how sql
> statements can be put in a file and used.
>
> Thanks
> Suresh Basandra
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-09-22 16:55:09 Re: GiST and full text search
Previous Message Suresh Basandra 2003-09-22 16:01:49 Using sql statements in file