From: Tomasz Myrta <jasiek@klaster.net>
To: andres javier garcia garcia <andresjavier.garcia@wanadoo.es>
Cc: PostgreSQL List <pgsql-sql@postgresql.org>
Subject: Re: Basic question.
Date: Thu, 24 Oct 2002 10:59:10 +0200
Message-ID: <3DB7B65E.801@klaster.net> (raw)
References: <200210240812.g9O8Cdc12687@natura.cebas.csic.es>
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
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: jasiek@klaster.net, andresjavier.garcia@wanadoo.es
Subject: Re: Basic question.
In-Reply-To: <3DB7B65E.801@klaster.net>
* 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