Thank you so much Sean.
----- Original Message ----
From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
Cc: Sandeep Khandelwal <sandeep_khandelwal27(at)yahoo(dot)com>
Sent: Friday, October 27, 2006 4:23:18 PM
Subject: Re: [INTERFACES] How to get table definition of a PostgreSQL table
On Friday 27 October 2006 02:25, Sandeep Khandelwal wrote:
> I would like to get field's name, datatype of each field, length of each
> field and precision of each field of a PostgreSQL table. Please let me SQL
> query to get this information.
See these two chapters in the postgresql docs:
Each has advantages over the other.
Also, if you start psql with the flag --echo-hidden, when you do commands like
\dt and \d+, psql will show you the sql it uses to produce that output.
pgsql-interfaces by date
|Next:||From: Niels Laakmann||Date: 2006-11-20 11:12:41|
|Subject: ECPG and COPY FROM STDIN|
|Previous:||From: Carlo Stonebanks||Date: 2006-10-28 21:25:53|
|Subject: Re: pg_exec commit causes extremely long delays|