What's wrong with nullable columns in composite primary keys?

后端 未结 6 1019
囚心锁ツ
囚心锁ツ 2020-11-27 12:57

ORACLE does not permit NULL values in any of the columns that comprise a primary key. It appears that the same is true of most other \"enterprise-level\" systems.

At

6条回答
  •  借酒劲吻你
    2020-11-27 13:30

    NULL == NULL -> false (at least in DBMSs)

    So you wouldn't be able to retrieve any relationships using a NULL value even with additional columns with real values.

提交回复
热议问题