Re: How to see the definition of an existing table?

Поиск
Список
Период
Сортировка
От missive@frontiernet.net (Lee Harr)
Тема Re: How to see the definition of an existing table?
Дата
Msg-id 9o650p$2c1r$1@news.tht.net
обсуждение исходный текст
Ответ на How to see the definition of an existing table?  (ke wang <kw68@cornell.edu>)
Список pgsql-sql
On Mon, 17 Sep 2001 14:51:52 +0000 (UTC), ke wang <kw68@cornell.edu> wrote:
> Is there any command or query to see the definition of an existing table,
> like which is the primary key, which is not null etc.
> 

In psql:
\d tablename

to see what the exact query is, start psql with the -E flag:
psql -E
\d tablename



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

Предыдущее
От: pkasimov@yahoo.com (Pasha)
Дата:
Сообщение: Stored prosedure last run
Следующее
От: pkasimov@yahoo.com (Pasha)
Дата:
Сообщение: Stored prosedure last run