Serial number of a record

From: "ashok(at)kalculate(dot)com" <ashok(at)kalculate(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Serial number of a record
Date: 2007-05-15 11:40:25
Message-ID: 380-220075215114025163@M2W015.mail2web.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi List,

I have one table something like this

Name Age
=================
tom 20
ram 25
shyam 30
balram 15
hari 10

Now i want serial number of a record.
Suppose if i will fire a query "select Name from tablename where age=30".
it will give output "shyam" but i also want record no. other then oid, in
this case it is 3.

is it possible?
if yes then how?
plz. help me.

Thanks
Ashok

--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2007-05-15 12:03:01 Re: workday function
Previous Message Andrew Sullivan 2007-05-15 11:19:45 Re: pg_dump?