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 -> Re: Oracle OCP Book - Is This Correct?

Re: Oracle OCP Book - Is This Correct?

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Thu, 24 Jan 2002 09:12:39 -0000
Message-ID: <3c4fd00a$0$8514$ed9e5944@reading.news.pipex.net>


"Tom Dyess" <tdyess_at_dyessindustries.com> wrote in message news:Sez38.422847$oj3.80035758_at_typhoon.tampabay.rr.com...
> > Pg. 203: "A listing of not NULL for the table column usually (although
> > not always) indicates that the table column is the primary key for
> > identifying unique rows in the table.
>
> Yes, once you start doing some heavy architecture, NOT NULLs are quite
> common for other columns than the primary key. I think this is a 'tip' for
> newbies.

I'm more than a little disappointed that this sort of thing creeps in. How difficult is it to actually find out definitively the primary key constraint for a table. Answer not at all. Why on earth give a 'tip' that is guaranteed (100%) to give you the wrong answer sooner or later. Moreover you should IMO always consider whether a table column should be NOT NULL, and or have a default value and or be subject to a check constraint. This sort of information is critical to good design.

--
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 Thu Jan 24 2002 - 03:12:39 CST

Original text of this message

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