Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: NUMBER vs NUMBER (n)
On Fri, 29 Sep 2006 19:41:06 -0700, Mark Townsend
<markbtownsend_at_comcast.net> wrote:
>
>>
>> 2) For surrogate key, is it better to use INTEGER, or NUMBER or NUMBER
>> (n) ? why ?
>>
>> Thank you,
>> xtanto
>
>Neither - store surrogate keys in VARCHAR2 columns - typically you are
>unlikely to need to perform arithmetic on a surrogate key.
Do not agree with you, especially if someone 'smart' decided to left
pad them with '0's.
Have been in such a situation, all surrogate keys varchar2(10), left
padded.
Did a trial conversion to number(10).
What do you think?
FIFTY PERCENT LESS I/O!!!!!
-- Sybrand Bakker, Senior Oracle DBAReceived on Sat Sep 30 2006 - 00:57:43 CDT
![]() |
![]() |