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 -> Table structure

Table structure

From: A. G. Mueller <nospam_at_nospam.com>
Date: Mon, 30 Sep 2002 04:03:35 GMT
Message-ID: <r2Ql9.61549$1C2.2925527@bgtnsc04-news.ops.worldnet.att.net>


Hello,

I want to create a user table to store user information, e.g. First name, Last name, Logon ID (a uniquely generated ID for each user), Phone, etc.

Is there anything wrong with creating the primary key on the Logon ID? The Logon ID will be a VARCHAR2 of eight long.

I'm not sure if creating the primary key index on a string is a good idea. From what I've seen, it's standard to create a "USER_ID" column, of NUMBER(6) which is a uniquely generated number (from a sequence), leaving the Login ID as is.

Any ideas?

-== A.G. Mueller ==- Received on Sun Sep 29 2002 - 23:03:35 CDT

Original text of this message

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