SQL request to retrieve the type of columns - Mailing list pgsql-sql

From Jean-Max Reymond
Subject SQL request to retrieve the type of columns
Date
Msg-id 3C6938B3.3060208@bull.net
Whole thread Raw
Responses Re: SQL request to retrieve the type of columns  ("Andrew G. Hammond" <drew@xyzzy.dhs.org>)
List pgsql-sql
I am looking for a SQL request (must be executed in a ECPG program) to
retrieve the type of each column in a Postgres table.

For example,
\d wapi                Table "wapi"Attribute  |         Type          | Modifier 
------------+-----------------------+----------wapinom    | character(8)          | wapicall   | character varying(12)
|wapitrans  | character varying(4)  | wapistruct | character varying(50) | 
 

It will be great to have the same result with a "select request".
regards,


-- 
Jean-Max Reymond 
============================================================================Email  : Jean-Max.Reymond@bull.netAddress:
BULLSLDV (Saint Laurent du Var)
 
============================================================================




pgsql-sql by date:

Previous
From: Bhuvan A
Date:
Subject: Re: Sequencing Problem in Transaction..
Next
From: Vivek Khera
Date:
Subject: Re: SQL request to retrieve the type of columns