Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: primary keys
Randy A. Stebbins wrote:
<snip>
> I don't think you want a sequence. Sequences are for using ordered lists
Whoa, there. I believe the most common use of sequences is to generate a unique number (if you don't allow wrapping) to be used as a key or part of a key. It is perfectly valid to use something like this as a primary key in two circumstances:
> of numbers. A primary key is not something separate from a table. It is
> one (or more) columns of the table itself. When you identify a primary key
> for a table, Oracle creates an index on the key, and prevents any duplicate
> entries.
>
<snip>
-- Allen Kirby AT&T ITS Production Services akirby_at_att.com Alpharetta, GA.Received on Fri Jun 13 1997 - 00:00:00 CDT
![]() |
![]() |