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 77FF9D1B550 for ; Sun, 16 Nov 2003 20:53:17 +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 16733-06 for ; Sun, 16 Nov 2003 16:52:48 -0400 (AST) Received: from web10406.mail.yahoo.com (web10406.mail.yahoo.com [216.136.130.98]) by svr1.postgresql.org (Postfix) with SMTP id 9AB03D1DD45 for ; Sun, 16 Nov 2003 16:52:46 -0400 (AST) Message-ID: <20031116205248.71546.qmail@web10406.mail.yahoo.com> Received: from [200.95.111.126] by web10406.mail.yahoo.com via HTTP; Sun, 16 Nov 2003 14:52:48 CST Date: Sun, 16 Nov 2003 14:52:48 -0600 (CST) From: =?iso-8859-1?q?Augusto=20Meza=20Lizardi?= Subject: how can obtain the OID of the last insert ? 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-Spam-Status: No, hits=3.1 tagged_above=0.0 required=5.0 tests=BAYES_20, FROM_ENDS_IN_NUMS, RCVD_IN_DSBL, RCVD_IN_NJABL X-Spam-Level: *** X-Archive-Number: 200311/97 X-Sequence-Number: 3499 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