How do I make a composite key with SQL Server Management Studio?

前端 未结 7 1561
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 05:25

How do I make a composite key with SQL Server Management Studio?

I want two INT columns to form the identity (unique) for a table

7条回答
  •  無奈伤痛
    2020-11-28 05:51

    Highlight both rows in the table design view and click on the key icon, they will now be a composite primary key.

    I'm not sure of your question, but only one column per table may be an IDENTITY column, not both.

提交回复
热议问题