Re: getting list of tables from command line

Поиск
Список
Период
Сортировка
От Filip Rembiałkowski
Тема Re: getting list of tables from command line
Дата
Msg-id 92869e660710311025x12c171bbg5f3cd5acf006f023@mail.gmail.com
обсуждение исходный текст
Ответ на getting list of tables from command line  (Craig White <craigwhite@azapple.com>)
Список pgsql-general
2007/10/31, Craig White <craigwhite@azapple.com>:
> I wrote a little script to individually back up table schemas, table
> data and then vacuum the table and it works nicely but I wanted a way to
> query a database and get a text file with just the table names and
> cannot figure out a way to do that.


for table in ` psql -qAtc "select table_name from information_schema.tables
where table_schema='public'" `



--
Filip Rembiałkowski

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

Предыдущее
От: João Paulo Zavanela
Дата:
Сообщение: Re: Install plJava
Следующее
От: "T.J. Adami"
Дата:
Сообщение: Server's Locale