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: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 01 May 2003 11:36:05 +0800
Message-ID: <3EB09625.3BF1@yahoo.com>


DTS wrote:
>
> 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
A quick and easy way is to convert the number to hex, then you will "pseudo-alphanumeric"

hth
connor

-- 
=========================
Connor McDonald
http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue"
Received on Wed Apr 30 2003 - 22:36:05 CDT

Original text of this message

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