From: Wei Weng <wweng@kencast.com>
To: Suresh Basandra <sureshb@warpera.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using sql statements in file
Date: Mon, 22 Sep 2003 12:03:30 -0400 (EDT)
Message-ID: <Pine.LNX.4.56.0309221202020.18144@localhost.localdomain> (raw)
In-Reply-To: <000a01c38122$d49b8920$7e01a8c0@adminsyiqnhet0>
References: <000a01c38122$d49b8920$7e01a8c0@adminsyiqnhet0>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: wweng@kencast.com, sureshb@warpera.com
Subject: Re: Using sql statements in file
In-Reply-To: <Pine.LNX.4.56.0309221202020.18144@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox