Re: getting count for a specific querry

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: getting count for a specific querry
Дата
Msg-id 20050408163039.GE27718@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Re: getting count for a specific querry  (Ragnar Hafstað <gnari@simnet.is>)
Ответы Re: getting count for a specific querry  ("Joel Fradkin" <jfradkin@wazagua.com>)
Список pgsql-sql
On Fri, Apr 08, 2005 at 04:17:45PM +0000, Ragnar Hafstað wrote:
> On Fri, 2005-04-08 at 11:07 -0400, Andrew Sullivan wrote:
> > 
> >     SELECT count(*) FROM tablename WHERE condition LIMIT n;

> the LIMIT clause limits the number of rows returned by the select,
> in this case 1 row.
> 
> maybe you mean something like:
> 
> test=# select count(*) from (select * from a limit 2) as foo;

Yes, that was stupid of me.  That's what I meant, though.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
When my information changes, I alter my conclusions.  What do you do sir?    --attr. John Maynard Keynes


В списке pgsql-sql по дате отправления:

Предыдущее
От: Ragnar Hafstað
Дата:
Сообщение: Re: getting count for a specific querry
Следующее
От: Tom Lane
Дата:
Сообщение: Re: getting count for a specific querry