Re: [SQL] Formatting the output

Поиск
Список
Период
Сортировка
От Bill Brandt
Тема Re: [SQL] Formatting the output
Дата
Msg-id 19990729133403.A32362@draaw.net
обсуждение исходный текст
Ответ на Formatting the output  ("G. Anthony Reina" <reina@nsi.edu>)
Список pgsql-sql
Try:

psql db01 -c "select tablename from pg_tables where tablename NOT LIKE '%pg%'" -t

The -e makes it display the QUERY: <whatever> line... so removing it fixes that
problem... the -t tells it not to show the column headings and such...

Bill

On Thu, Jul 29, 1999 at 10:02:13AM -0700, G. Anthony Reina wrote:
>Is there a way that I can supress the column heading and the "(# rows)"
>which come before and after the following psql command:
>
>psql -e db01 -c "select tablename from pg_tables where tablename NOT
>LIKE 'pg%'"
>
>
>The current output is:
>
>tablename
>=======
>table1
>table2
>table3
>table4
>(4 rows)
>
>What I'd like to get is simply:
>
>table1
>table2
>table3
>table4
>
>
>Thanks.
>-Tony
>
>
>

-- 
Liam

Bill Brandt                                   
brandtwr@draaw.net                              http://www.draaw.net/


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

Предыдущее
От: "G. Anthony Reina"
Дата:
Сообщение: Formatting the output
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Formatting the output