Re: ordering problems ... - Mailing list pgsql-sql

From David Goodwin
Subject Re: ordering problems ...
Date
Msg-id 20030415104749.GA3191@codepoets.co.uk
Whole thread Raw
In response to ordering problems ...  (David Goodwin <dof@codepoets.co.uk>)
Responses Re: ordering problems ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
DIB Walid wrote :
> Hello,
> I think that Postgres use the default ORDER BY function:
> so in your first request there is a default order by on the "answer" 
> In order to obtain the same order in your second request, put"ORDER BY 
> ANSWER" in your request, because if you miss this point, postgres will order 
> by id automatically, i hope i understand your problem because my english is a 
> little weak.
> @+
> Walid
> INRIA Rhones Alpes

Hi,

Thanks for the speedy reply :)

I just discovered that if i put in a "order by qra.oid" it works ok.
If I run the query with "select * from ..." rather than "select answer
from .." the results are the same (ordered alphabetically by answer).

thanks
David.
-- 
David Goodwin 

[ dof at codepoets dot co dot uk   ]
[ http://www.codepoets.co.uk       ]



pgsql-sql by date:

Previous
From: David Goodwin
Date:
Subject: ordering problems ...
Next
From: "mdc@keko.com.ar"
Date:
Subject: Re: help with query!!!