Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Design question...
On Wed, 2002-04-17 at 10:18, Grabowy, Chris wrote:
> To simplify my question, if I am creating a STATE table to hold all the
> states of the US, should I create it like this...
Chris,
We use a state_id field which is a number.Usually you want to use
numbers or integers as primary keys, but since my guess is you'll have
about 50 rows ;-) I don't think the performance will be to bad if you
want to keep the code as a char. Of course that also depends on how hard
you think the table will be hit
HTH, -Brian
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Brian Haas INET: bhaas_at_musiciansfriend.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Apr 17 2002 - 13:28:47 CDT
![]() |
![]() |