| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: When to use integer keys?
Kramer wrote:
>
> On Jan 23, 7:12 pm, Bob Badour <bbad..._at_pei.sympatico.ca> wrote:
>
>>What predicates does one want to express relative to BlockType?
>>Do rows >>in the BlockType table do anything other than state that a block type >>exists?
>>Do you have referential integrity constraints related to block type? >>
>>Once you answer those, if you decide you need a BlockTypes table, the >>design criteria for candidate keys are uniqueness, stability, >>familiarity and simplicity. >> >>In my opinion, a character string is as simple as an integer. Are the >>block type names unique, stable and familiar?
Yes, but stability is important. It is a design tradeoff. Both the name and the integer are unique and simple. One is familiar while the other is not. One is stable while the other is not. It's a tradeoff and there is no single right or wrong answer. Received on Wed Jan 24 2007 - 15:17:10 CST
![]() |
![]() |