Re: Table description
От
Scott Marlowe
Тема
Re: Table description
Дата
Msg-id
dcc563d10708200808v6c8931fctc3a2edb47c2b10b@mail.gmail.com
Ответ на
Table description (Livia Santos)
Список
Дерево обсуждения
Table description "Livia Santos" <liviasilvasantos@gmail.com>
Re: Table description Robert Gravsjö <robert@blogg.se>
Re: Table description "Livia Santos" <liviasilvasantos@gmail.com>
Re: Table description Richard Broersma Jr <rabroersma@yahoo.com>
Re: Table description "Scott Marlowe" <scott.marlowe@gmail.com>
On 8/20/07, Livia Santos wrote: > Hi. > > Is there any command that describe a table, such as desc table_name as in > Oracle? Yes and no. The psql client has a series of \ commands that can describe pretty much anything in the db in a pretty print nature and a minimum of typing. The \ commands are NOT implemented in the backend, but in the psql client so you can't just hit the db with \d from a libpq connection to get a list of all tables / views / sequences. However, you can use psql -E to have psql show you al lthe queries it's throwing at the backend to get that pretty output, and then you can take what it's doing and either wrap it in a view for future use, or run it directly.
В списке pgsql-general по дате отправления