Re: Command line output - How to output values only?

Поиск
Список
Период
Сортировка
От Charley Tiggs
Тема Re: Command line output - How to output values only?
Дата
Msg-id 478544CB.80108@tiggs.net
обсуждение исходный текст
Ответ на Command line output - How to output values only?  ("sdger erger" <killen.nextdoor@gmail.com>)
Список pgsql-novice
If you mean while using psql with the -c switch, add -t.

psql -t dbname username -c "select * from foo" > data_file.txt

If you mean from within the client environment, use \t.

Charley

sdger erger wrote:
> When I retrieve SQL queries through the command line I get outputs like:
>
>  *Code:*
> Title
> -------
> value
> (1 row)
>
>
> Is there anything I can do, any option I can choose, to retrieve only the
> value?
>
>  *Code*
> value
>


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

Предыдущее
От: "Michael Smith"
Дата:
Сообщение: Re: Creating a tablespace on an external server in Windows
Следующее
От: Charley Tiggs
Дата:
Сообщение: psql record separator