Armstrong、whirls

导航

SQL server 多个字段设为主键

create table teacher_course(

  ton char(8) not null,

  classno char(8) not null,

  con char(4) not null primary key(ton,classno,con),

  semester char(6),

  schoolyear char(10),

  classtime varchar(40),

  classroom varchar(40)

);

create table 表名 (

  字段1,

  字段2,

  字段3 int primary key(字段1,字段2,字段3),

  字段4,

  字段5

  ...

)

posted on 2018-04-08 21:41  the1sin  阅读(2567)  评论(1编辑  收藏  举报