Re: Using sql statements in file - Mailing list pgsql-sql

From scott.marlowe
Subject Re: Using sql statements in file
Date
Msg-id Pine.LNX.4.33.0309231054310.12142-100000@css120.ihs.com
Whole thread Raw
In response to Using sql statements in file  ("Suresh Basandra" <sureshb@warpera.com>)
List pgsql-sql
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.

psql dbnamehere <filename.sql



pgsql-sql by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: pl/pgsql, cursors and C function
Next
From: Tom Lane
Date:
Subject: Re: pl/pgsql, cursors and C function