pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chester c young <chestercyoung@yahoo.com>
To: Campbell, Lance <lance@uiuc.edu>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: Create on insert a unique random number
Date: Tue, 18 Mar 2008 09:43:01 -0700 (PDT)
Message-ID: <268179.51357.qm@web54301.mail.re2.yahoo.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760CDDC32@SAB-FENWICK.sab.uiuc.edu>


> When inserting a record is there a way to have postgres create a
> random number for a field such that it is unique?


you could use oid



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



view thread (19+ messages)  latest in thread

Message-ID: <268179.51357.qm@web54301.mail.re2.yahoo.com>
Permalink:  ../268179.51357.qm@web54301.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/268179.51357.qm@web54301.mail.re2.yahoo.com

 · 

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: chestercyoung@yahoo.com, lance@uiuc.edu
  Subject: Re: Create on insert a unique random number
  In-Reply-To: <268179.51357.qm@web54301.mail.re2.yahoo.com>

* 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