Hallo Sancho!
Deine ursprünglich beschriebene Überprüfung ist über Check-Constraints möglich.
Hier mal ein Beispiel:
SQL-Code:
SET SQL DIALECT 3;
SET NAMES ISO8859_1;
CREATE TABLE TEST (
W
INTEGER,
X
INTEGER,
Y
INTEGER,
Z
INTEGER
);
ALTER TABLE TEST
ADD CONSTRAINT CHK1_TEST
check (((w
is not null and (x
is null and y
is null and z
is null))
or (w
is null))
);
Hope it helps
Thomas