Re: How do I use text script containing SQL?

From: David Olbersen <dave(at)slickness(dot)org>
To: "Jeff S(dot)" <pgsqluser(at)yahoo(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How do I use text script containing SQL?
Date: 2001-03-05 19:08:40
Message-ID: Pine.LNX.4.31.0103051108010.925-100000@bubbles.electricutopia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 5 Mar 2001, Jeff S. wrote:

->I want to be able to use the file to create my table.
->I've tried psql -d databasename -e < filename.txt
->but that doesn't work.

You're making it too dificult :-)
'psql -d databasename < filename.txt' should work just fine

-- Dave

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message clayton cottingham 2001-03-05 19:10:26 Re: How do I use text script containing SQL?
Previous Message Jeff S. 2001-03-05 18:56:00 How do I use text script containing SQL?