Re: Get a list of columns for a table

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Get a list of columns for a table
Дата
Msg-id 200509071641.51015.josh@agliodbs.com
обсуждение исходный текст
Ответ на Get a list of columns for a table  ("Kevin Crenshaw" <kcrenshaw@viscient.com>)
Список pgsql-novice
Kevin,

> How do I retrieve a list of columns for a table from an outside
> application? I don't want to retrieve any rows from the table just the
> column related data like what is retrieved using '\d [table name]' in
> psql.  Can this be done using a simple Select statement?

Yes.  Look up INFORMATION_SCHEMA in the PostgreSQL Docs.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От:
Дата:
Сообщение: Weird SQL Problem
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Weird SQL Problem