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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Is a primary key always desired?

Re: Is a primary key always desired?

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Sat, 4 Oct 2003 21:36:11 +0100
Message-ID: <3f7f2f26$0$254$cc9e4d1f@news.dial.pipex.com>


"Odba1961" <odba1961_at_aol.com> wrote in message news:20031004093902.02137.00000391_at_mb-m01.aol.com...
> You are right, there are small lookup tables that do not require a primary
key.

Perhaps an example would help.

Create table us_states(
abbreviation char(2),
name varchar2(50));

insert into us_states values(null,'Arizona');
insert into us_states values('AZ','Arizona');
insert into us_states values('FL','Arizona');

commit;

Not much good really is it.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer
******************************************
Received on Sat Oct 04 2003 - 15:36:11 CDT

Original text of this message

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