From: jdassen@cistron.nl
To: pgsql-admin@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: random rows
Date: Thu, 26 Apr 2001 19:53:32 +0000 (UTC)
Message-ID: <slrn9egv5s.8mb.jdassen@odin.cistron-office.nl> (raw)
References: <3AE85E1E.2D39D02D@agliodbs.com>
<Pine.BSF.4.10.10104261133340.77756-100000@tidal.ipinc.com>
Jie Liang <jliang@ipinc.com> wrote:
>e.g. what my selectee is a set of 1000 rows, I want randomly pickup 100 of
>1000.
Have you tried
SELECT * FROM selectee ORDER BY random() LIMIT 100;
?o
HTH,
Ray
--
<GRub[B]eR> JHM, jij bent echt nerd :))
<GRub[B]eR> maar wel een goeie :)
<GRub[B]eR> Soort van programmerende furby
Gezien op #cistron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jdassen@cistron.nl, pgsql-admin@postgresql.org
Subject: Re: random rows
In-Reply-To: <slrn9egv5s.8mb.jdassen@odin.cistron-office.nl>
References: <3AE85E1E.2D39D02D@agliodbs.com> <Pine.BSF.4.10.10104261133340.77756-100000@tidal.ipinc.com> <slrn9egv5s.8mb.jdassen@odin.cistron-office.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox