X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B8AB53A4B27 for ; Mon, 29 Nov 2004 09:43:14 +0000 (GMT) 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 41953-05 for ; Mon, 29 Nov 2004 09:43:11 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id CC8143A42F3 for ; Mon, 29 Nov 2004 09:43:11 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1CYi3p-000HPi-Di; Mon, 29 Nov 2004 09:43:11 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id AF882169EF; Mon, 29 Nov 2004 09:42:59 +0000 (GMT) Message-ID: <41AAEF22.10804@archonet.com> Date: Mon, 29 Nov 2004 09:42:58 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nurdin Cc: pgsql-sql Subject: Re: count record in plpgsql References: <005a01c4d5bb$8d27e860$8a030b0a@JACARTA.CMACGM.COM> In-Reply-To: <005a01c4d5bb$8d27e860$8a030b0a@JACARTA.CMACGM.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/282 X-Sequence-Number: 19600 Nurdin wrote: > how can i know the count of record in plpgsql.example if i'm query > with query komponent from delphi i will know the record count of > record.but how with plpgsql. GET DIAGNOSTICS integer_var = ROW_COUNT; See the manual for details (plpgsql section, "Obtaining the result status"). HTH -- Richard Huxton Archonet Ltd