From: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Cc: | prashanth_kamath1(at)rediffmail(dot)com |
Subject: | Re: How to incorporate exec sql describe select list |
Date: | 2003-02-12 08:54:17 |
Message-ID: | 3E4A0BB9.FDC4A67B@rodos.fzk.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>
> I have requirement where for a select statement i need dbms column
> information like data type,precision,scale, length etc
> In Oracle using "exec sql describe select list ..." it is possible
> to obtain the above information. In postgres descriptor is
> avaialble only after fetching from the cursor. This is not
> possbile through ecpg programming. But i was thinking whether it
> is possible to do with libpq programming. If so can anyone send me
> pointer to the code.
>
Refer to libpq - C Library within the Client Interfaces section.
Under Command Execution Functions there is a subsection
about Retrieving SELECT Result Information.
This should be what you were asking for.
There is also some C code to refer to. Have a look at the
Example Programs.
Regards, Christoph
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Jaenecke | 2003-02-12 09:09:15 | timestamp |
Previous Message | Daniel Jaenecke | 2003-02-12 08:46:15 | timestamp |