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: unique ID

Re: unique ID

From: Jim Kennedy <kennedy-downwithspammersfamily_at_attbi.net>
Date: Wed, 08 Dec 2004 13:08:38 GMT
Message-ID: <q1Dtd.628140$mD.162240@attbi_s02>

"Christoph Kukulies" <kuku_at_accms33.physik.rwth-aachen.de> wrote in message news:31o3aiF3aqposU1_at_news.dfncis.de...
> When inserting items into a table (chunks of LONGs) that come in
> from a transaction I need some unique ID that can accompany the item
> so that it can be identified uniquely even if the contents is the
> same (e.g. the user of the alien transaction system hits the submit button
> twice or over and over again). Also sorting the list by timestamp
> would be desirable. I thought of so to say conglamer the date/timestamp
with
> a random number to ibtain a unique ID that allows for sorting by date
> at the same time.
>
> Are there already provisions for that in Oracle or in databases per se?
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>

Use sequences. Random numbers don't mean the numbers don't or won't repeat. Jim Received on Wed Dec 08 2004 - 07:08:38 CST

Original text of this message

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