如何在SQL Server 2008中创建复合主键

我想在SQL Server 2008中创建表,但是我不知道如何创建复合主键。我该如何实现?



一只斗牛犬
浏览 685回答 3
3回答

catspeake

create table my_table (     column_a integer not null,     column_b integer not null,     column_c varchar(50),     primary key (column_a, column_b));
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

SQL Server