From: | "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com> |
---|---|
To: | "Raul DAVIDOVICH" <R(dot)DAVIDOVICH(at)cvitkovic-ac(dot)fr>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: problem with select after updating |
Date: | 2001-12-10 18:52:54 |
Message-ID: | 200112101852.fBAIqsE32527@comptechnews.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
SQL doesn't specify how updates/inserts etc. will affect ordering of rows in
a table. If you need a specific ordering of results, you always must use
ORDER BY. There is no guarantee of ordering otherwise.
Bob
On Monday 10 December 2001 11:07 am, Raul DAVIDOVICH wrote:
> Hello,
>
> I'm having a problem when updating a row.. after comiting the change,
> the row appears at the end of the list, and from there on, it stays there
> until the next update.
> This happens when using both JDBC or psql. Normally, rows shouldn't
> change the order after updates. Am I messing it up with the indexes?
>
> thank you very much in advance
>
> ---------------------------------------------------
> Raul Davidovich
> Responsable Informatique
> Cvitkovic & Associés Consultants
>
> (33) 1 45 15 40 68
> (33) 1 45 15 40 41 Fax
> -------------------------------------------------------
> http://www.caconcology.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
From | Date | Subject | |
---|---|---|---|
Next Message | Doug McNaught | 2001-12-10 18:56:06 | Re: problem with select after updating |
Previous Message | Nick Fankhauser | 2001-12-10 18:52:23 | Re: PostgreSQL Outer Joins |