Re: random rows
От | Joel Burton |
---|---|
Тема | Re: random rows |
Дата | |
Msg-id | Pine.LNX.4.21.0104261634460.2565-100000@olympus.scw.org обсуждение исходный текст |
Ответ на | Re: random rows (Jie Liang <jliang@ipinc.com>) |
Список | pgsql-admin |
On Thu, 26 Apr 2001, Jie Liang wrote: > > I've donne something like: > > > > prereg_iw=# select random(), nombre from asistente order by 1 limit 10; > > random | nombre > > ----------------------+--------------- > > 0.000214523170243261 | ALFONSO > > 0.000478655100091666 | OSCAR > > 0.000892118085591177 | JOSE LUIS > > 0.000972398091560415 | IGNACIO > > 0.00109919300354048 | NORBERTO > > 0.00180558208460248 | SALVADOR > > 0.00196880800741204 | ANDRES NOE > > 0.00197171233686233 | SARA MICHELLE > > 0.00226354412839913 | DAVID > > 0.00233715307076329 | RODOLFO > > (10 rows) How totally obvious in retrospect, and how much better of a solution than the ones I offered. D'oh! Thanks for posting it to the list. -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
В списке pgsql-admin по дате отправления: