NULL value in multi-column primary key

前端 未结 5 1307
执笔经年
执笔经年 2020-12-29 17:54

I\'ve got a table with several columns making up the primary key. The nature of the data stored allows some of these fields to have NULL values. I have designed

5条回答
  •  囚心锁ツ
    2020-12-29 18:06

    you can use unique keys, please take a look to this link, they work with null values

    http://www.xaprb.com/blog/2009/09/12/the-difference-between-a-unique-index-and-primary-key-in-mysql/

提交回复
热议问题