| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера