Re: psql commandline

Поиск
Список
Период
Сортировка
От Charley L. Tiggs
Тема Re: psql commandline
Дата
Msg-id 8710B74B-8EC1-4C24-8F63-6F1F5B88BADB@xpressdocs.com
обсуждение исходный текст
Ответ на psql commandline  (digit-x@gmx.net)
Список pgsql-novice
On Aug 31, 2005, at 7:14 AM, digit-x@gmx.net wrote:

> Hi list
>
> the following commandline query doesn`t work.....
> why? please help
>
> su - postgres -c 'psql --dbname database --command "UPDATE users SET
> pin=12345 WHERE login='admin';"'

Here's easier syntax that you can use to execute your query from the
command line:

psql -c "UPDATE users SET pin=12345 WHERE login='admin'" database
postgres

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

Предыдущее
От: digit-x@gmx.net
Дата:
Сообщение: psql commandline
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Sorting Challenge