Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Primary Key of type string ?
On 31.05.2007 11:26, sybrandb wrote:
> On May 31, 11:03 am, "Oriane" <ori..._at_guermantes.fr> wrote:
>> Just a basic question from a beginner in Oracle. Is is the "standard choice" >> to use a column of type "int" for the primary key ? I suppose that this is a >> performance issue ? What about choosing a type "string/char" for a primary >> key ?
And I thought the standard choice would be the key dictated by business requirements...
> Do *NOT* store numbers padded with zeroes in a string!
> This will result in much more I/O and all of your code is sensitive to
> implicit type conversion, and Oracle will always convert the database
> column to the variable, thus suppressing index usage.
That's good advice.
Kind regards
robert Received on Thu May 31 2007 - 06:41:01 CDT
![]() |
![]() |