From: | Tomasz Myrta <jasiek(at)klaster(dot)net> |
---|---|
To: | andres javier garcia garcia <andresjavier(dot)garcia(at)wanadoo(dot)es> |
Cc: | PostgreSQL List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Basic question. |
Date: | 2002-10-24 08:59:10 |
Message-ID: | 3DB7B65E.801@klaster.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tomasz Myrta | 2002-10-24 09:14:27 | Re: Basic question. |
Previous Message | Tomasz Myrta | 2002-10-24 08:51:29 | Re: sub-select with aggregate |