Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 6987D2E002C for ; Tue, 22 Apr 2008 10:26:35 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54475-03-6 for ; Tue, 22 Apr 2008 10:26:23 -0300 (ADT) X-Greylist: delayed 00:30:00.86724 by SQLgrey-1.7.5 Received: from interscan.indicator.com (mail.indicator.be [193.121.199.3]) by developer.postgresql.org (Postfix) with ESMTP id B449D2E004C for ; Tue, 22 Apr 2008 10:26:16 -0300 (ADT) Received: from DOMEXT-MTA by WEBACCESS.INDICATOR.BEwith Novell_GroupWise; Tue, 22 Apr 2008 14:56:12 +0200 Message-Id: <480DFC7F.A3DD.0030.0@indicator.be> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Tue, 22 Apr 2008 14:56:00 +0200 From: "Bart Degryse" To: "Nacef LABIDI" , "Craig Ringer" Cc: , "Roland Voegtli" Subject: Re: After updating dataset the record goes to the end of thedataset References: <3 B256469-4A00-44C3-8EB8-F49FA9F7259A@scnat.ch><480DDE26.50405@postnewspapers.com.au> In-Reply-To: <480DDE26.50405@postnewspapers.com.au> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__PartBD94F570.1__=" X-imss-version: 2.050 X-imss-result: Passed X-imss-approveListMatch: *@indicator.be X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/140 X-Sequence-Number: 30679 --=__PartBD94F570.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Probably what you mean is that you want the order in which the records = were=20 originally inserted into the database. In that case add a serial to your = table and fetch the records like SELECT * FROM tbl WHERE 1=3D1 ORDER BY [myserialfield] It's not foolproof but will in many cases come close to what you seem to = be trying=20 to achieve by not using 'order by'. Nacef LABIDI wrote: > Yes I don't issue any sort statement, and I indeed want the data to be = show > as it is stored in the database. --=__PartBD94F570.1__= Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Probably what you mean is that you want the order in which the = records were
originally inserted into the database. In that case add a serial to = your table and
fetch the records like
SELECT * FROM tbl WHERE 1=3D1 ORDER BY [myserialfield]
It's not foolproof but will in many cases come close to what= you seem to be trying
to achieve by not using 'order by'.

Nacef LABIDI wrote:
>= Yes I don't issue any sort statement, and I indeed want the data to be = show
> as it is stored in the database.
--=__PartBD94F570.1__=--