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

前端 未结 7 1560
爱一瞬间的悲伤
爱一瞬间的悲伤 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 06:00

    Open up the table designer in SQL Server Management Studio (right-click table and select 'Design')

    Holding down the Ctrl key highlight two or more columns in the left hand table margin

    Hit the little 'Key' on the standard menu bar at the top

    You're done..

    :-)

    0 讨论(0)
提交回复
热议问题