Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Concatenated Primary Key
In article <35bc8854.0_at_news.rlcn.rl.af.mil>,
reichmanm_at_removethis.rl.af.mil. (Mark S. Reichman) wrote:
> In the book "Building Intelligent Databases with Oracle PL/SQL
> Triggers and Procedures" the author on page 59 says the
> individual columns of a concatenated primary key can be null as long
> as at least one of the columns is not null.
I did not read the book, but it definitely is a typo. ALL primary key columns must have NOT NULL values. If some of key columna can be null you should use UNIQUE constraint rather than PRIMARY KEY constraint.
Solomon Yakobson
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Mon Jul 27 1998 - 21:53:59 CDT
![]() |
![]() |