Random Unique Integer - Mailing list pgsql-sql

From Campbell, Lance
Subject Random Unique Integer
Date
Msg-id A3AC4FA47DC0B1458C3E5396E685E63302395E40@SAB-DC1.sab.uiuc.edu
Whole thread
Responses Re: Random Unique Integer
List pgsql-sql

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?  I would rather not create a stored procedure.

 

Thanks,

 

 

 

Lance Campbell

Project Manager/Software Architect

Web Services at Public Affairs

University of Illinois

217.333.0382

http://webservices.uiuc.edu

 

pgsql-sql by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: [GENERAL] function to find difference between in days between two dates
Next
From: Michael Fuhr
Date:
Subject: Re: Random Unique Integer