select a random record

Поиск
Список
Период
Сортировка
От bj@zuto.de (Rainer Clasen)
Тема select a random record
Дата
Msg-id 20010901085750.C18947@zuto.de
обсуждение исходный текст
Ответы Re: select a random record
Список pgsql-general
Hi!

I'm currently thinking about building a completely database driven
jukebox. It will integrate with an already existing (well kind of) library
for my music files (and more).

This jukebox should offer a random play mode. It should take into account
when the title was played the last time. My Idea is to submit the query
returning the records ordered by their last time of play, ignore a random
number of records, fetch one record and drop the result set.

I'm wondering wether there is a more elegant way to fetch a random record
from a result.

Rainer

--
KeyID=759975BD fingerprint=887A 4BE3 6AB7 EE3C 4AE0  B0E1 0556 E25A 7599 75BD

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

Предыдущее
От: A_Schnabel@t-online.de (Andre Schnabel)
Дата:
Сообщение: Re: PgAdmin question - superuser
Следующее
От: bj@zuto.de (Rainer Clasen)
Дата:
Сообщение: Re: select a random record