联合主键就是2个或者2个以上字段做主键,至于需要那些字段做主键是由具体需求决定的。eg: create table aa ( a int , b int, c char(2), d datetime );alter table aa add primary key (a, b);