Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Why do we use Meaningful PK or Meaningless PK ?

Why do we use Meaningful PK or Meaningless PK ?

From: <krislioe_at_gmail.com>
Date: 5 Sep 2006 08:04:53 -0700
Message-ID: <1157468693.614659.319170@h48g2000cwc.googlegroups.com>


Hi All,

My questions below is very basic (I am a developer not a dba ..)

I see on database design that the Primary Key (PK) is usually not the "Key" that is visible to user, e.g : if we has Invoice table, the columns are :

InvoiceID (PK) => this is only visible to developer, user never see it, usually
using sequence.
InvoiceNumber => this is visible on UI, reports etc ....
>From the design point of view, what is the reason of the above design ?

Thank you for your help,
xtanto Received on Tue Sep 05 2006 - 10:04:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US