pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Campbell, Lance <lance@uiuc.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Random Unique Integer
Date: Thu, 14 Jun 2007 07:25:41 -0600
Message-ID: <20070614132540.GA70344@winnie.fuhr.org> (raw)
In-Reply-To: <A3AC4FA47DC0B1458C3E5396E685E63302395E40@SAB-DC1.sab.uiuc.edu>
References: <A3AC4FA47DC0B1458C3E5396E685E63302395E40@SAB-DC1.sab.uiuc.edu>

On Thu, Jun 14, 2007 at 08:08:26AM -0500, Campbell, Lance wrote:
> I have a table T1.  It contains a field called F1.  Is there a way for
> me to set the table T1 up such that F1 can be populated with a random
> integer such that F1 is a unique integer?

What problem are you trying to solve?  The solution might depend
on what you're trying to do.

-- 
Michael Fuhr



view thread (4+ messages)  latest in thread

Message-ID: <20070614132540.GA70344@winnie.fuhr.org>
Permalink:  ../20070614132540.GA70344@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20070614132540.GA70344@winnie.fuhr.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, lance@uiuc.edu
  Subject: Re: Random Unique Integer
  In-Reply-To: <20070614132540.GA70344@winnie.fuhr.org>

* 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