Re: Describe Table

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Describe Table
Дата
Msg-id 514977.80789.qm@web31801.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Describe Table  (<danap@dandymadeproductions.com>)
Список pgsql-sql
--- On Mon, 12/17/07, danap@dandymadeproductions.com 

> I've reviewed much of the documentation and the forums,
> but unable to seem to find a easy way to obtain the same
> thing as the 'psql \d table' through sql. I

I've never understood the information schema well enough to construct my own sql queries that provide the same useful
informationas 'psql \d'.  So instead, I cheat:
 

start psql with the '-E' option to echo all sql strings psql sends to the back-end server.

Simply copy and tailor each statement to suit your needs.

Regards,
Richard Broersma Jr.


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

Предыдущее
От: Colin Wetherbee
Дата:
Сообщение: Re: Describe Table
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Describe Table