I want to create tables in SQL Server 2008, but I don't know how to create composite primary key. How can I achieve this?
create table my_table ( column_a integer not null, column_b integer not null, column_c varchar(50), primary key (column_a, column_b) );
2.1m questions
2.1m answers
60 comments
57.0k users