How to get OID return value(pls help me)

From: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
To: "postgre" <pgsql-admin(at)postgresql(dot)org>
Cc: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
Subject: How to get OID return value(pls help me)
Date: 2005-12-22 05:35:22
Message-ID: 001001c606b9$80b50060$cd00000a@amiindiahjwbgh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi......

My table consists of oid and varchar datatypes.
I want to get the oid type from the table and i need to pass it to a function which accepts only the oid data type.
But my problem is the return value of the datatype i am getting from the query result is char*.
Is there any function in postgresql which gives the return value of the executed query as OID type.

Please explain me what to do inorder to get the Oid type
When i used PQoidValue(res).It is giving 0.
Also in document they mention something related to INSERT query only.
But i want it for select query.
Thank you,
Regards,
Sandhya

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2005-12-22 06:31:10 Re: How to get OID return value(pls help me)
Previous Message nhan nguyen 2005-12-22 04:38:14 Unsucbribe PGADMIN