Re: Running queries from scripts.

Поиск
Список
Период
Сортировка
От DalTech - Continuing Technical Education
Тема Re: Running queries from scripts.
Дата
Msg-id 013c01bfe765$8304b460$5911be86@cte.Dal.Ca
обсуждение исходный текст
Ответ на Re: Running queries from scripts.  (Margarita Barvinok <brita@umich.edu>)
Список pgsql-sql
> It works for me, for example, this way:
> athens% psql -d template1 -c "select datname from pg_database"

Thanks, I feel a little sheepish at not trying it with quotes around the
query, but the manuals don't mention that you have to enclose the query in
quotes when you use the -c option.

-Christopher Currie



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

Предыдущее
От: Margarita Barvinok
Дата:
Сообщение: Re: Running queries from scripts.
Следующее
От: John
Дата:
Сообщение: confused by select.