Quote:
|
Originally Posted by urquel
If you want to have nulls in a unique index, use the "WHERE NOT NULL" clause in your create index statement.
|
WHERE NOT NULL is an option for create index on DB2 for OS/390 and z/OS (maybe DB2 for I-series ??), but is not available on DB2 for LUW.
You can have a null in a unique index on DB2 for LUW (assuming the column is nullable), but you can only have one of them.