how many rows? [was Re: fetching rows]

From: Arnaud Vandyck <arnaud(at)ressource-toi(dot)org>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: how many rows? [was Re: fetching rows]
Date: 2000-11-17 09:01:28
Message-ID: 3A14F3E8.1FD2685F@ressource-toi.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Robert B. Easter" wrote:
>
> > you can't do that with a cursor, but you can use they mysql-ism called a
> > limit clause. for example, to fetch rows 26-50 from that query, you'd
> > do:
> >
> > select * from films limit 25,26;
> >
> > or
> >
> > select * from files limit 25 offset 26;

I did know it was possible but did not know how to do, thanks (It was
not my question but I'm glad to see the solution:)

and how can I know how many rows are returned by the query?

--
Arnaud
( http://www.ressource-toi.org )

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Clayton Cottingham 2000-11-17 15:29:07 Re: is there a mysql to postgresql sql converter?
Previous Message Yves Martin 2000-11-17 08:58:23 Like seems to fail !