row numbering - Mailing list pgsql-general

From Detlef Jockheck
Subject row numbering
Date
Msg-id 200303062019.h26KJIW04397@krakatau.jockheck.de
Whole thread Raw
List pgsql-general
Hi!

How can I number the rows. I have a table with one column:
a
44.3
2.3
33.2
17

Now I need a reverse numbered table:
a    points
2.3    4
17    3
33.2    2
44.3    1

I've seen that this is possible with a sequence, but then I alwas have to
create, use and drop it for every query. Is there a better way available?

ciao
Detlef

--
# Dipl. Ing. (FH) Detlef Jockheck
# E-mail: detlef@jockheck.de
# -------------------------------

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: triggers
Next
From: Detlef Jockheck
Date:
Subject: => or =#