Re: "Oracle's ROWNUM"

From: Ryan Mahoney <ryan(at)paymentalliance(dot)net>
To: Svenne Krap <usenet(at)krap(dot)dk>, pgsql-general(at)postgresql(dot)org
Subject: Re: "Oracle's ROWNUM"
Date: 2001-07-28 21:54:15
Message-ID: 5.0.2.1.0.20010728174342.0398b8b0@paymentalliance.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I think you should look into the documentation for your particular
interface. We generally use PHP as an interface. We use the pg_exec
function to create an indexed result set from a connection and
statement. Then we iterate through each indexed row, calling
pg_fetch_array so we can manipulate and display returned values.

Hope this answers your question!

-Ryan

At 11:03 PM 7/28/01 +0200, Svenne Krap wrote:

>Hi,
>
>is there any way to get the number of the tuple in the result set...
>
>in Oracle you can write
>
>select rownum, * from mytable;
>
>and then get (handmade example) :
>
>rownum | id | name
>-----------------------------
>1 | 27| John Dow
>2 | 09 | Jane Dow
>3 | 11 | Bugs Bunny

Attachment Content-Type Size
unknown_filename text/plain 166 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben Udkow 2001-07-29 00:54:15 How do I set datestyle to postgres at initialization?
Previous Message Svenne Krap 2001-07-28 21:03:07 "Oracle's ROWNUM"