On 7/2/07, Andre du Plessis <[EMAIL PROTECTED]> wrote:
Good day everyone.

I would like to know how to create an Autoincrement field and insure
that it is unique across the database, I tested this and it does not
seem to work:

..

1. Use a GUID, or
2. Use some kind of crypt/md5 kinda function on a random string (same
effect as above), or
3. Use a timestamp as a unique ID, esp. in conjunction with a hi-res
time lib, or

Don't know if #1 and #2 above are built-in, but #3 could probably be
done without any external library.

--
Puneet Kishor http://punkish.eidesis.org/
Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/
Open Source Geospatial Foundation http://www.osgeo.org/education/
S&T Policy Fellow, National Academy of Sciences http://www.nas.edu/
---------------------------------------------------------------------
collaborate, communicate, compete
=====================================================================

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to