Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 958152E008C for ; Thu, 3 Apr 2008 13:30:26 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 42246-06-2 for ; Thu, 3 Apr 2008 13:30:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by developer.postgresql.org (Postfix) with ESMTP id E2B242E0097 for ; Thu, 3 Apr 2008 13:30:14 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id m38so3617483waf.5 for ; Thu, 03 Apr 2008 09:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lJzlq5gTXk4ZSHVF9RXFDCdu/0caQAI0lpfFHY0+3F0=; b=DqEUscp7XzPX/Jbb2cvE2pqKA/iUyI3QmLswfgk4+KN3oHdGsy2Oy7blzN34j14MoZkbiKGp0gXIHK8g2g/Mp7AnNSKGbtw0uys9/rzaAF62EBL2DsiDKI0tHyFgeof/A8oA33ioU6C1VfJulteVx+yJTvYd9P2RgGcvezgyG5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YOQ1x7Ok+e+DCeALNqx8iyup5pSsRQBysM0Q/7QCoZyN/vC9TpsbMr55kaDlIWZmta+708o+UAS3B1mdhoGptAPjpkUnBUS80v/cdBD+lTU7sET0dRJuIC02MrelWgS/cTwcnVhB0brUnafeRg8q7ZEd4UBYds6pS2Db+U62IF8= Received: by 10.114.126.1 with SMTP id y1mr4912wac.108.1207240208939; Thu, 03 Apr 2008 09:30:08 -0700 (PDT) Received: by 10.114.72.8 with HTTP; Thu, 3 Apr 2008 09:30:07 -0700 (PDT) Message-ID: <84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com> Date: Thu, 3 Apr 2008 11:30:07 -0500 From: "Adam M" To: pgsql-odbc@postgresql.org Subject: Re: get number of rows selected In-Reply-To: <9103513CAFE9554496DD17054510B6DF01287EA1@corpappl002.corp.saab.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9103513CAFE9554496DD17054510B6DF01287EA1@corpappl002.corp.saab.se> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/13 X-Sequence-Number: 9476 Generally you would do that with a count function instead of relying on something else. "select * from layer where visible = 1" so I guess "SELECT COUNT(*) FROM layer WHERE visible=1" would give you the answer. - Adam