Re: Basic question. - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: Basic question.
Date
Msg-id 3DB7B9F3.2000209@klaster.net
Whole thread Raw
In response to Basic question.  (andres javier garcia garcia <andresjavier.garcia@wanadoo.es>)
List pgsql-sql
> And. If I'm not connected to any database. Can I execute a file that makes a 
> query on a database?
Sorry, I made a mistake
psql -f <filename> -U <user> <database>
I'm not sure, but you can add export PGPASSWORD=<password> before this 
command if you need a password.
Tomasz Myrta



pgsql-sql by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: Basic question.
Next
From: patrick
Date:
Subject: Re: sub-select trouble: wrong SQL or PostgreSQL issue?