Re: SQL statement : list table details

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: Samik Raychauhduri <samik(at)cae(dot)wisc(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL statement : list table details
Date: 2002-03-01 00:58:48
Message-ID: 1014944328.374.17.camel@jiro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2002-02-28 at 19:59, Samik Raychauhduri wrote:
> Hi,
> Thanks for this query BTW, I was looking for a query like this :)
> Let's see if anybody comes up with any solution to the data types.

Do this:

$ psql -E
nconway=> \d my_table

This will display the queries that psql uses to determine the data types
of a table. The same holds true for all the other psql 'slash commands'.

Cheers,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Samik Raychauhduri 2002-03-01 00:59:11 Re: SQL statement : list table details
Previous Message Richard Emberson 2002-03-01 00:30:49 bulk insertions in PL/pgsql functions