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

Home -> Community -> Usenet -> c.d.o.misc -> Re: When does ROWID change ?

Re: When does ROWID change ?

From: Alan Shein <alanshein_at_erols.com>
Date: Tue, 2 Nov 1999 09:44:42 -0500
Message-ID: <7vmtb7$ibg$1@autumn.news.rcn.net>

Jenda Krynicky <Jenda_at_Krynicky.cz> wrote in message news:1103_941539499_at_prague_main...
> Is it safe to use a ROWID as a key for some table?

NO NO NO!!!!!!!!!!! ROW IDs are dynamic, and you have no control over them. There is no guarantee that any particular row will ever have the same row id. Remember that relational theory says that sets (data, in this case) are not stored in any particular order. Your data is in a bucket, not on shelves. It just so happens that most of the time, you have a very steady hand and can retrive the data from the bucket the same way you did last time, but there's no guarantee...

You may need to create an artificial key (such as a sequence number). Received on Tue Nov 02 1999 - 08:44:42 CST

Original text of this message

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