X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 136835320B for ; Tue, 12 Apr 2005 12:56:51 -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 43558-05 for ; Tue, 12 Apr 2005 15:56:45 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8849453390 for ; Tue, 12 Apr 2005 12:56:43 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3CFue5G021228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Apr 2005 09:56:42 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3CFue8t097096; Tue, 12 Apr 2005 09:56:40 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3CFuelx097095; Tue, 12 Apr 2005 09:56:40 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 12 Apr 2005 09:56:40 -0600 From: Michael Fuhr To: jing han Cc: pgsql-interfaces@postgresql.org Subject: Re: How to retrieve how many rows are affected after doing an INSERT statement Message-ID: <20050412155639.GA90146@winnie.fuhr.org> References: <20050412154124.83434.qmail@web53502.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050412154124.83434.qmail@web53502.mail.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/54 X-Sequence-Number: 5470 On Tue, Apr 12, 2005 at 08:41:24AM -0700, jing han wrote: > > Is there a way to retriever from $dbh how many rows > are affected after doing an insert statement, and how > to present this? See the DBI documentation (e.g., "perldoc DBI") and search for "rows" or "number of rows". -- Michael Fuhr http://www.fuhr.org/~mfuhr/