Re: [SQL] Formatting the output
| От | G. Anthony Reina |
|---|---|
| Тема | Re: [SQL] Formatting the output |
| Дата | |
| Msg-id | 37A09F65.CCE4770A@nsi.edu обсуждение исходный текст |
| Ответ на | Formatting the output ("G. Anthony Reina" <reina@nsi.edu>) |
| Список | pgsql-sql |
Bill Brandt wrote: > 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... > Bruce Momjian wrote: > How about psql -qt: > > #$ sql -qt test > select * from pg_language; > internal|f |f | 0|n/a > lisp |f |f | 0|/usr/ucb/liszt > C |f |f | 0|/bin/cc > sql |f |f | 0|postgres > > The manual page says -q turns off row count, but -t does. I will fix > that now. > Thanks. That works fine. -Tony
В списке pgsql-sql по дате отправления: