Re: Query from shell

Поиск
Список
Период
Сортировка
От Jim Buttafuoco
Тема Re: Query from shell
Дата
Msg-id 20060406225547.M95598@contactbda.com
обсуждение исходный текст
Ответ на Re: Query from shell  ("Owen Jacobson" <ojacobson@osl.com>)
Список pgsql-sql
or

psql db <<EOQ
select...;
delete...;
update...;
\q
EOQ



---------- Original Message -----------
From: "Owen Jacobson" <ojacobson@osl.com>
To: <pgsql-sql@postgresql.org>
Sent: Thu, 6 Apr 2006 14:37:51 -0700
Subject: Re: [SQL] Query from shell

> Judith wrote:
> 
> >        Hi every body, somebody can show me hot to execute a 
> > query from a shell
> 
> echo QUERY HERE | psql databasename
> 
> Or, if you want to run several queries, run psql and run your queries there.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
------- End of Original Message -------



В списке pgsql-sql по дате отправления:

Предыдущее
От: kevin.kempter@dataintellect.com
Дата:
Сообщение: Re: Query from shell
Следующее
От: Daniel Browning
Дата:
Сообщение: Modeling trees with Nested Sets and Nested Intervals