returned row number - Mailing list pgsql-novice

From Keith Worthington
Subject returned row number
Date
Msg-id 20050506193743.M20879@narrowpathinc.com
Whole thread Raw
Responses Re: returned row number  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-novice
Hi All,

I have a quick question.  Is there a simple way to access the returned record
number?

I want to be able to do something like

SELECT record AS record_no,
       column1,
       column2
  FROM table1
 WHERE column2 < 100
 ORDER BY column1;

record_no | column1 | column2
----------+---------+---------
1         | A       | 1.75
2         | F       | 93
3         | M       | 12.5
4         | N       | 0
5         | Q       | 57.6

Kind Regards,
Keith

pgsql-novice by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: connect from perl: error in Carp.pm
Next
From: Bruno Wolff III
Date:
Subject: Re: returned row number