| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: NextNumbers Tables
"Jason W. Paul" <nobody_at_nowhere.com> wrote in
news:3e49a949$0$99441$a04e5680_at_nnrp.fuse.net:
>
> "stu" <smcgouga_at_nospam.co.uk> wrote in message
> news:b28ims$phi$1$8302bc10_at_news.demon.co.uk...
> [snip]
>> Why? My uni teacher used to say always use a surrogate key. It stops >> you from duplicating keys later. What advantages does it have over >> using IDs?
Personally I always use them because I like being able to take advantage of them to handle things like browsing data sets online. Also, it gives me the protection from the business when they tell me that something will absolutely never ever ever change. Then it changes next week.
As I previously posted, I do implement natural keys in addition to surrogate keys.
I've notice that surrogate keys vs natural keys seems to be a religous debate so ... oh well. :)
-- Pablo Sanchez, High-Performance Database Engineering http://www.hpdbe.comReceived on Tue Feb 11 2003 - 22:17:45 CST
![]() |
![]() |