From: | Anand Surelia <anand(at)bytekinc(dot)com> |
---|---|
To: | "Jose' Soares" <jose(at)sferacarta(dot)com> |
Cc: | "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] Row Nums |
Date: | 1998-10-08 19:07:59 |
Message-ID: | 361D0D8E.7DF185E@bytekinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jose' Soares wrote:
> Anand Surelia wrote:
> >
> > Hi,
> > I want to display serial numbers of rows selected by a query. I can do
> > this in Oracle by selecting a special attribute called 'rownum' (or
> > 'rowno'). Can I do this in Postgres too? If not then is there any
> > alternative in Postgres?
> >
> SELECT oid, * FROM tablename;
>
> Jose'
>
No I dont't want the oids but the serial number of a row in the present
output of the query. For e.g in Oracle we have:
select rownum,name from tablename;
will give me,
rownum | name
1 | Anand
2 | Jose' Soares
3 | Someone
Thanks,
Anand.
From | Date | Subject | |
---|---|---|---|
Next Message | Evan Howarth | 1998-10-08 19:24:00 | Re: [GENERAL] SELECT Date |
Previous Message | Andy Lewis | 1998-10-08 18:45:34 | SELECT Date |