Re: How to see the definition of an existing table? - Mailing list pgsql-sql

From missive@frontiernet.net (Lee Harr)
Subject Re: How to see the definition of an existing table?
Date
Msg-id 9o650p$2c1r$1@news.tht.net
Whole thread Raw
In response to How to see the definition of an existing table?  (ke wang <kw68@cornell.edu>)
List 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 by date:

Previous
From: pkasimov@yahoo.com (Pasha)
Date:
Subject: Stored prosedure last run
Next
From: pkasimov@yahoo.com (Pasha)
Date:
Subject: Stored prosedure last run