level 2
CREATE TABLE borrow --借书表( borrowID CHAR(10) primary key, --借书编号stuID CHAR(10) foreign key(stuID) references student(stuID), --学生编号BID CHAR(10) foreign key(BID) references book(BID),--图书编号 T_time datetime NOT NULL, --借出日期 B_time datetime --归还日期)
2016年09月17日 10点09分
1
level 2
STUDENT和BOOK表已建好。建类型都CHAR
2016年09月17日 10点09分
2
level 8
建外键的 加个约束constraint FK_T_borrow foreign key (STUID) references student(STUID)
2016年09月21日 16点09分
6