Re: order by rand()

Поиск
Список
Период
Сортировка
От Steve Heaven
Тема Re: order by rand()
Дата
Msg-id 3.0.1.32.20000719090828.00b40350@mail.thornet.co.uk
обсуждение исходный текст
Ответ на order by rand()  ("Mike Sears" <matrix@vianet.ca>)
Список pgsql-general
At 23:46 18/07/00 +0200, Peter Eisentraut wrote:
>Mike Sears writes:
>
>> I'm wondering if postgress is able to do order by rand() or if it is
done by
>> some other means through php easily
>
>The function is called random(), but yes, it works.
>
Is this a 7.x only feature ?

With 6.5.2 I get

select * from topten where room='SM' order by random();
ERROR:  No such function 'random' with the specified attributes
--
thorNET  - Internet Consultancy, Services & Training
Phone: 01454 854413
Fax:   01454 854412
http://www.thornet.co.uk

В списке pgsql-general по дате отправления:

Предыдущее
От: Gilles DAROLD
Дата:
Сообщение: Re: cursor problem
Следующее
От: Pavel.Janik@linux.cz (Pavel Janík ml.)
Дата:
Сообщение: Re: pg_dump with BLOBS & V7.0.2 UPDATED