Re: Number timestamped rows

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Number timestamped rows
Date: 2011-11-08 09:36:12
Message-ID: j9at6c$7ro$2@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2011-11-02, Jan Peters <petersjan(at)gmx(dot)at> wrote:
> Dear all,
> maybe a stupid question, but: I have a table that is ordered like this:
>

Tables aren't ordered. Sometimes they may seem to be ordered,
but they seldom stay that way for long.

> and I would like to number them according to their timestamps like this:

> How would I do this with an UPDATE statement (e.g.) in pgsql?

If you want ordered data use an ORDER BY clause in the select,
there is no other reliable way.

--
⚂⚃ 100% natural

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jasen Betts 2011-11-08 09:46:11 Re: the use of $$string$$
Previous Message Sylvain Mougenot 2011-11-08 09:03:11 Partitionning + Trigger and Execute not working as expected