Re: Random()

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Random()
Date: 2006-11-16 19:16:32
Message-ID: 20061116191632.GA21285@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am Thu, dem 16.11.2006, um 16:31:14 -0200 mailte Ezequias Rodrigues da Rocha folgendes:
> Hi list,
>
> I have a bigint collumn and I would like to generate a random number within the
> numbers of my column.

select <bigint_column> from <your_table> order by random() limit 1;

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

  • Random() at 2006-11-16 18:31:14 from Ezequias Rodrigues da Rocha

Responses

  • Re: Random() at 2006-11-16 20:31:08 from Ezequias Rodrigues da Rocha
  • Re: Random() at 2006-11-16 20:54:42 from Ezequias Rodrigues da Rocha
  • Re: Random() at 2006-11-17 23:14:51 from Aaron Bono
  • Re: Random() at 2006-11-18 17:32:33 from Rajesh Kumar Mallah

Browse pgsql-sql by date

  From Date Subject
Next Message lms 2006-11-16 19:53:34 convert with libpq
Previous Message Ezequias Rodrigues da Rocha 2006-11-16 18:31:14 Random()