Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Randomizing ...

Re: Randomizing ...

From: <sergey_s_at_my-deja.com>
Date: Tue, 14 Nov 2000 19:49:04 GMT
Message-ID: <8us4vc$i7k$1@nnrp1.deja.com>

Thank you!

In article <8uruk5$c6d$1_at_nnrp1.deja.com>,   sybrandb_at_my-deja.com wrote:
> In article <8urshh$a45$1_at_nnrp1.deja.com>,
> sergey_s_at_my-deja.com wrote:
> > How can I select a number of random rows from a table? Say I wanted
 to
> > select 500 random IDs from a table, how would I do that? I was
 trying
> > to find a random number generator function in SQL or PL/SQL, but
 didn't
> > see one so far. I guess I could use mod. Are there any other ways?
> >
> > Oracle 8.0.5
> >
> > Thank you!
> > Sergey
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
> >
>
> There is a random generator in pl/sql in Oracle 8.0 and beyond.
> It is called -guess what- dbms_random.
>
> Hth,
> --
> Sybrand Bakker, Oracle DBA
>
> All standard disclaimers apply
> ----------------------------------------------------------------------
 --
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Nov 14 2000 - 13:49:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US