Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Mixed Alphanumeric Unique IDs???

Re: Mixed Alphanumeric Unique IDs???

From: Jusung Yang <JusungYang_at_yahoo.com>
Date: 1 May 2003 08:40:19 -0700
Message-ID: <130ba93a.0305010740.24672b4c@posting.google.com>


dave_at_simcik.com (DTS) wrote in message news:<d78648f5.0304301403.38201077_at_posting.google.com>...
> Hi group,
> I'm wondering what the best way is to construct unique ID's for
> primary keys and such. I would like to create unique keys that use a
> combination of letters and numbers. Oracle sequences only generate
> numbers - should I consider some form of hashing algorithm, such as
> MD5? In general, what are the best practices for primary key usage in
> Oracle???
>
> THANKS!
> DTS
Take a look at sys_guid. Might be what you are looking for.

SQL> select sys_guid() from dual;

SYS_GUID()



4E1A857166B04C1F8FFE26E1DA1F407C SQL> Received on Thu May 01 2003 - 10:40:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US