X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4AA801FEEBD8 for ; Sun, 21 Aug 2005 16:56:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19853-04 for ; Sun, 21 Aug 2005 19:56:33 +0000 (GMT) Received: from web35209.mail.mud.yahoo.com (web35209.mail.mud.yahoo.com [66.163.179.88]) by svr1.postgresql.org (Postfix) with SMTP id 5938A1FEEBBC for ; Sun, 21 Aug 2005 16:56:28 -0300 (ADT) Received: (qmail 8526 invoked by uid 60001); 21 Aug 2005 19:56:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4pXDv32qMjbBtU5oKzrygWTOozo0Nq3mk9e6ck99RMJDogNLhinThtoJ8CSBaze8HXB+pBX4MZLv1ixLcAgMXSc8EEXeaMZBIGn/+zrxOy5KtTZHUBYufQMJtpE5asczP257vTILmBL1ICTRyEhpW1PHr49W5wnly/QjOlez1m8= ; Message-ID: <20050821195627.8524.qmail@web35209.mail.mud.yahoo.com> Received: from [70.104.144.58] by web35209.mail.mud.yahoo.com via HTTP; Sun, 21 Aug 2005 12:56:27 PDT Date: Sun, 21 Aug 2005 12:56:27 -0700 (PDT) From: "Matt A." Subject: returning inserted id To: pgsql-sql@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 hub.org X-Spam-Status: No, hits=0.374 required=5 tests=[DNS_FROM_RFC_ABUSE=0.374] X-Spam-Level: X-Archive-Number: 200508/256 X-Sequence-Number: 22484 this may have been asked a thousand times but i haven't found a standard answer... MSSQL set nocount on insert into (column) values (value) select identityid = @@identity set nocount off POSTGRESQL *cricket cricket* :) How is this done? By a trigger function? Or is it natively supported? Could I get an example on how to do it too? Thanks, Matt ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs