Ynt: OID's as Primary Keys

From: Erol Öz <eroloz(at)esg(dot)com(dot)tr>
To: "Antoine Reid" <antoiner(at)hansonpublications(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Ynt: OID's as Primary Keys
Date: 2001-11-09 07:35:14
Message-ID: 001b01c168f1$1300a160$0b00000a@doruk.www.doruk.net.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>> I think that depends on the language you are using to do development.
>> For example, I happen to know that PyGreSQL (the Python interface I
>> use) returns the oid on when you use it's insert() method, and I think
>> that PHP can do this as well

Yes, see pg_getlastoid() function.

Regards
Erol Oz

Browse pgsql-general by date

  From Date Subject
Next Message Stuart Robinson 2001-11-09 07:51:33 inserts on views using rules
Previous Message Tielman J de Villiers 2001-11-09 07:23:11 Re: PSQL anc compile errors