Re: ordering problems ...

Поиск
Список
Период
Сортировка
От David Goodwin
Тема Re: ordering problems ...
Дата
Msg-id 20030415104749.GA3191@codepoets.co.uk
обсуждение исходный текст
Ответ на ordering problems ...  (David Goodwin <dof@codepoets.co.uk>)
Ответы Re: ordering problems ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: David Goodwin
Дата:
Сообщение: ordering problems ...
Следующее
От: "mdc@keko.com.ar"
Дата:
Сообщение: Re: help with query!!!