pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam M <gnuman1@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: get number of rows selected
Date: Thu, 3 Apr 2008 11:30:07 -0500
Message-ID: <84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com> (raw)
In-Reply-To: <9103513CAFE9554496DD17054510B6DF01287EA1@corpappl002.corp.saab.se>
References: <9103513CAFE9554496DD17054510B6DF01287EA1@corpappl002.corp.saab.se>

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



view thread (4+ messages)  latest in thread

Message-ID: <84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com>
Permalink:  ../84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com/
Also on:    postgresql.org/message-id/84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: gnuman1@gmail.com
  Subject: Re: get number of rows selected
  In-Reply-To: <84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com>
  References: <9103513CAFE9554496DD17054510B6DF01287EA1@corpappl002.corp.saab.se> <84b37b360804030930o1b771e47ib9082bf3cecb54f6@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox