Re: returns numbers of record

From: justin <justin(at)emproshunts(dot)com>
To: info(at)enricopirozzi(dot)info
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: returns numbers of record
Date: 2008-12-03 02:49:50
Message-ID: 4935F3CE.8020003@emproshunts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Select Count(*) from (query) is what i believe you are looking for see
http://www.postgresql.org/docs/8.3/interactive/tutorial-agg.html

Enrico Pirozzi wrote:
> Hi all,
> does it exists a way to know how many records a query returns?
>
> I thought sometime like
>
> DECLARE curs1 CURSOR FOR select * from table ;
>
> I thought if I can write MOVE LAST Is there any way to return
> the number of row for select * from table without execute a count(*) ?
>
> Thanks :)
>
> Enrico
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Siddharth Shah 2008-12-03 05:20:30 Re: pg_xlog content
Previous Message Scott Marlowe 2008-12-02 23:15:19 Re: Corruption in postgres 7.4 on solaris 2.9.