Re: Create on insert a unique random number

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: "Campbell, Lance" <lance(at)uiuc(dot)edu>
Cc: sql pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Create on insert a unique random number
Date: 2008-03-18 16:43:01
Message-ID: 268179.51357.qm@web54301.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2008-03-18 16:51:39 Re: Create on insert a unique random number
Previous Message Campbell, Lance 2008-03-18 16:34:05 Create on insert a unique random number