Re: Examples of accessing postgresql with scripts?

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема Re: Examples of accessing postgresql with scripts?
Дата
Msg-id 20030527164724.GB2445@campbell-lange.net
обсуждение исходный текст
Ответ на Re: Examples of accessing postgresql with scripts?  (hodges@xprt.net)
Ответы Re: Examples of accessing postgresql with scripts?  (hodges@xprt.net)
Список pgsql-novice
psql -d <dbname> [-U <user>] -c "<command>"

eg (if you do not need to log in as a user):
psql -d temporary -c "select * from people;"

On 27/05/03, hodges@xprt.net (hodges@xprt.net) wrote:
> Can anyone direct me to some example bash scripts that
> execute queries thru psql?
>
> I need to check a bunch of tables for dates as a background
> job daily.  Seems like bash, perl, or python might be good
> ways to do this.  I think I know enough perl to do it but
> maybe bash or python would be better choices?

--
Rory Campbell-Lange
<rory@campbell-lange.net>
<www.campbell-lange.net>

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

Предыдущее
От: Rory Campbell-Lange
Дата:
Сообщение: Re: reuse RECORD in function 'select into'?
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: Examples of accessing postgresql with scripts?