\d command Поиск
Список
Период
Сортировка
От Mark Jewiss
Тема \d command
Дата
Msg-id Pine.BSO.4.10.9909271412510.4204-100000@office.knowledge.com
обсуждение исходный текст
Ответы Re: [GENERAL] \d command  (Simon Drabble <simon@eskimo.com>)
Re: [GENERAL] \d
command  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [GENERAL] \d
command  (Rodney McDuff <ccmcduff@its.uq.edu.au>)
Список pgsql-general
Hello,

I want to be able to build up information about the different tables held
in a database for a small diagnostic tool that I'm writing.

I need to see the name of each column in the table, the column data type
and size, and if nulls are allowed - essentially what is produced by the
'\d <tablename>' command.

Does anyone know the SQL query to use on the system tables to produce that
result? I've started to go through them now, and was expecting to find
something along the lines of 'pg_columns', but no such luck. :(

Regards,

Mark.
--
Mark Jewiss
Knowledge Matters Limited
http://www.knowledge.com


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

Предыдущее
От: Otavio Exel
Дата:
Сообщение: libpq on win32 & postgresql on linux
Следующее
От: Simon Drabble
Дата:
Сообщение: Re: [GENERAL] \d command