MG
2010-10-13 08:23:49 UTC
I need to remove the restriction that imposes that, if a field in a
table is a primary key it's mandatory. I need to remove this to allow
the final script to be something like:
CREATE TABLE TABLE_4
(
COLUMN_1 RAW,
CONSTRAINT PK_TABLE_4 PRIMARY KEY (COLUMN_1)
);
This is because, in Oracle the column will be always validated for
null values because of the PK constraint and if the not null is
defined then another not null constraint is generated without being
necessary.
Can anyone point me in a the good direction?
table is a primary key it's mandatory. I need to remove this to allow
the final script to be something like:
CREATE TABLE TABLE_4
(
COLUMN_1 RAW,
CONSTRAINT PK_TABLE_4 PRIMARY KEY (COLUMN_1)
);
This is because, in Oracle the column will be always validated for
null values because of the PK constraint and if the not null is
defined then another not null constraint is generated without being
necessary.
Can anyone point me in a the good direction?