Re: Basic question. - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: Basic question.
Date
Msg-id 3DB7B65E.801@klaster.net
Whole thread Raw
In response to Basic question.  (andres javier garcia garcia <andresjavier.garcia@wanadoo.es>)
List pgsql-sql
Uz.ytkownik andres javier garcia garcia napisa?:
> Hi;
> I'm sorry for ask this basic question. But I can't find in the documentation.
> 
> I'm connected to a database; and how can I execute a query that I've got in a 
> file?
> 
> And. If I'm not connected to any database. Can I execute a file that makes a 
> query on a database?
But how are you connected to database?
If you are using tool named "psql" you can use "\i filename"
or you can do from command line psql <database> -U <user> <filename>

Tomasz Myrta



pgsql-sql by date:

Previous
From: andres javier garcia garcia
Date:
Subject: Basic question.
Next
From: Tomasz Myrta
Date:
Subject: Re: Basic question.