Article ID: 124483
Article Last Modified on 8/27/1999
CREATE [UNIQUE] INDEX index-name
ON table-name (column-identifier [ASC][DESC]
[, column-identifier [ASC][DESC]...])
WITH <index option list>
where <index option list> can be: PRIMARY|DISALLOW NULL|IGNORE NULL
If a table test has a UNIQUE index on col1, then it is possible to insert two rows into test, such that both the rows have NULL in col1. This is a result of the semantics of a NULL value. By definition, a NULL value represents something that is unknown. Since two unknown values are not necessarily the same, two NULL values are not equal to each other. Thus, the uniqueness criterion on the column is not violated.
Additional query words: 2.00.2317 ODBC DESKTOP DATABASE DRIVERS PACK MFC VISUAL C++ Windows NT
Keywords: KB124483