RE: [SQL] random tuple

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [SQL] random tuple
Дата
Msg-id F10BB1FAF801D111829B0060971D839F45FE9D@cpsmail
обсуждение исходный текст
Список pgsql-sql
> On 07-Oct-98 Jackson, DeJuan wrote:
> >> Is there any way to select a random row from a table using an SQL
> >> query?
> >> I'm using Postgresql 6.3.2.
> >>
> > I'd look at using cursors and random().
>
> It's a good idea. Do you (or someone else) know how to use the
> following
> PostgreSQL functions: oidrand(oid,int4) ,oidsrand(int4)? What are they
> intended for and what is their result?
>
Never seen them before but it looks like:
    oidsrand(int4) -- seeds the random number generator for oidrand to
use
    oidrand(oid, int4) -- returns a psudo-random oid

The parameters to oidrand I can't figure out.
Anybody else?
        -DEJ
> ---
>
> ------------------------------------
>  Mauro Bartolomeoli
>  e-mail: mbarto@novacomp.it
>  ICQ#: 9602542
> ------------------------------------

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

Предыдущее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [HACKERS] Re: [COMMITTERS] 'pgsql/doc/src/sgml protocol.sgml'
Следующее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] RE: [SQL] random tuple