Re: how to show table structure?

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: how to show table structure?
Дата
Msg-id Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com
обсуждение исходный текст
Ответ на how to show table structure?  ("Bing Du" <bdu@iastate.edu>)
Список pgsql-sql
On Fri, 9 Jan 2004, Bing Du wrote:

> Greetings,
> 
> How can I see the layout of a table in PostgreSQL 7.4?  I've checked
> several books and on-line documents, but was not able to figure out how
> PostgreSQL does 'describe <table>' like it's done in other databases.

If in psql, use the \d commands (\? will show you all of them.

However, if you've not got psql to do it, you can look through the 
information_schema for anything like that, like so:

select * from information_schema.tables;

and so on.



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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: how to show table structure?
Следующее
От: "Kumar"
Дата:
Сообщение: Re: how to show table structure?