X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CE7BCD1BA81 for ; Mon, 17 Nov 2003 20:01:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 39307-02 for ; Mon, 17 Nov 2003 16:00:43 -0400 (AST) Received: from web10407.mail.yahoo.com (web10407.mail.yahoo.com [216.136.130.99]) by svr1.postgresql.org (Postfix) with SMTP id D3970D1BA89 for ; Mon, 17 Nov 2003 16:00:41 -0400 (AST) Message-ID: <20031117200042.20654.qmail@web10407.mail.yahoo.com> Received: from [200.67.113.10] by web10407.mail.yahoo.com via HTTP; Mon, 17 Nov 2003 14:00:42 CST Date: Mon, 17 Nov 2003 14:00:42 -0600 (CST) From: =?iso-8859-1?q?Augusto=20Meza=20Lizardi?= Subject: How can obtain the oid for the last inserted row ? To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/89 X-Sequence-Number: 3491 Hi, i am using ODBC for Postgresql with Visual Basic 6, somebody know how can obtain the oid for the last row inserted ? I try with :LASTOID ,but when i send the instruction "SELECT :LASTOID" return a error parser in the ":", the same error pass with the select in a stored procredure, this work fine only in plsql. Any idea ? Thanks Augusto _________________________________________________________ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com