Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is the use of VARCHAR(256) as Primary Keys preferred in Oracle?
Galen Boyer <galenboyer_at_hotpop.com> wrote in
news:u65uegqwk.fsf_at_hotpop.com:
> I think of it more as the database designer not trusting any outside
> source for his primary keys. Let attributes be able to be
> maintained, but never, ever touch my PK's. With the use of natural
> keys, then the database designer is "trusting" that the natural key
> is the correct one.
What I was attempting to explain was the reason 'why' one shouldn't trust the business folks. It's not that they're mean, green and ugly ...
>> Furthermore, it becomes _very_ easy to auto-generate code for the >> above. I know because we have an code generator that generates >> insert/update/delete PL/SQL for any schema by reading the meta data >> from the schema itself. All written in Perl/OraPerl.
I was presenting that as a 'bonus.' :) I wouldn't advocate a solution simply because it's easy for the developers.
-- Pablo Sanchez, High-Performance Database Engineering http://www.hpdbe.comReceived on Sat Nov 30 2002 - 22:49:02 CST