联合主键创建的语法

create table cartitem
(
uid int not null ,
bid int not null,
count int,
bookname varchar(200),
price decimal(12,0),
image varchar(200),
primary key(uid,bid)
)

posted @ 2016-12-06 18:50  ruiguang21  阅读(920)  评论(0编辑  收藏  举报