Re: Querying the field types of a table

From: Charles Tassell <ctassell(at)isn(dot)net>
To: "Dale Anderson" <danderso(at)crystalsugar(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Querying the field types of a table
Date: 2000-05-10 18:47:39
Message-ID: 4.2.0.58.20000510154445.00ae93b0@mailer.isn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

There has been discussion on this topic before, so if you check the
archives you will find more detail. Generally, the best way to find what
you are looking for is to start psql with the -E option (echo queries sent
to the backend) and then issue a \dt or \d tablename command to see the
query it uses.

At 03:30 PM 5/10/00, Dale Anderson wrote:
>Is there a way to query the field names and types of a table in either 6.5
>or 7.0?? I am writing an application, and in one piece, I need to get the
>field names and field types of any table. Can this be done??? I have
>searched both the web and documentation, and I can't seem to find a C
>function or system table that has this information.
>
>Thanks in advance,
>Dale.
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2000-05-10 19:22:25 Re: Querying the field types of a table
Previous Message Dale Anderson 2000-05-10 18:30:06 Querying the field types of a table