X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id F28E9D1B56B for ; Tue, 23 Sep 2003 17:05:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 20809-07 for ; Tue, 23 Sep 2003 14:05:23 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id EDE28D1B536 for ; Tue, 23 Sep 2003 14:05:21 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h8NGxT1o000628; Tue, 23 Sep 2003 10:59:30 -0600 (MDT) Date: Tue, 23 Sep 2003 10:54:45 -0600 (MDT) From: "scott.marlowe" To: Suresh Basandra Cc: Subject: Re: Using sql statements in file In-Reply-To: <000001c38121$c3c1fcc0$7e01a8c0@adminsyiqnhet0> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/274 X-Sequence-Number: 15252 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