Re: [GENERAL] Row Count? - Mailing list pgsql-general

From Wim Ceulemans
Subject Re: [GENERAL] Row Count?
Date
Msg-id 004901be9711$e058d970$6dfaa8c0@hercules.nice.be
Whole thread Raw
List pgsql-general

>> > SELECT * FROM foo WHERE ROW_COUNT < 10;
>> > Is there anything like "ROW_COUNT" or "ROWCOUNT" in PostgreSQL?
>

Look through the archives with LIMIT.
I believe in postgresql 6.4.2 you can use something like

set QUERY_LIMIT TO '10';


and after you've done:

reset QUERY_LIMIT;

and in 6.5 I think there is even a better way?


Regards

Wim Ceulemans - wim.ceulemans@nice.be
Nice Software Solutions - http://www.nice.be
Eglegemweg 3, 2811 Hombeek - Belgium
Tel +32(0)15 412953 - Fax +32(0)15 412954



pgsql-general by date:

Previous
From: Bruce Tong
Date:
Subject: Re: [GENERAL] Row Count?
Next
From: Thomas Reinke
Date:
Subject: Re: [GENERAL] Row Count?