Skip site navigation (1) Skip section navigation (2)

Re: [SQL] random query

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] random query
Date: 1999-10-29 20:47:49
Message-ID: Pine.GSO.3.96.SK.991030004510.21751o-100000@ra (view raw or flat)
Thread:
Lists: pgsql-sql
On Sat, 30 Oct 1999, Oleg Bartunov wrote:

> Date: Sat, 30 Oct 1999 00:31:27 +0400 (MSD)
> From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
> To: pgsql-sql(at)postgreSQL(dot)org
> Subject: [SQL] random query
> 
> I need to get random value:
> 
> select random(id) from messages where .....
> Is't possible with SQL ?

Just to be correct - I need only one random row
from matched rows. I've seen random.sql in 
regression test but didn't figured out yet how
to use oidrand for my purpose.


> 
> 	Oleg
> 
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 
> ************
> 

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


In response to

pgsql-sql by date

Next:From: Zot O'ConnorDate: 1999-10-29 22:26:04
Subject: Decimal precsion?
Previous:From: Andrew PattersonDate: 1999-10-29 20:44:30
Subject: Combining Two Tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group