Received: from m9.boston.juno.com (m9.boston.juno.com [205.231.100.195]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA57567 for ; Tue, 7 Dec 1999 11:33:32 -0500 (EST) (envelope-from jcc2@juno.com) Received: (from jcc2@juno.com) by m9.boston.juno.com (queuemail) id ES9GVT7C; Tue, 07 Dec 1999 11:32:22 EST To: pgsql-sql@postgresql.org Date: Tue, 7 Dec 1999 11:31:16 -0500 Subject: Getting last used oid Message-ID: <19991207.113118.-748361.0.jcc2@juno.com> X-Mailer: Juno 2.0.11 X-Juno-Line-Breaks: 0-10,12-17 X-Juno-Att: 0 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: John C Cusick To All, How can I call up the last oid used in an insert statement? I've checked the docs (but not the source - getting a little big :-) by way of the TOC's and didn't see it. I'm assuming/hoping there is a function similar to lastval, curval, nextval for sequences available to do this that I would like to use in a trigger to populate another table. I also did a perusal of the new book, which looks *_really_* good so far, but it didn't have what I was hoping to find. I can do it normally of course (select oid, 'last_inserted_unique_field') from table;) but i would like a more behind the scenes way. Thank you all, John C. ___________________________________________________________________ Why pay more to get Web access? Try Juno for FREE -- then it's just $9.95/month if you act NOW! Get your free software today: http://dl.www.juno.com/dynoget/tagj.