数据库原理与应用第三版何玉洁第五章上机练习答案 | 您所在的位置:网站首页 › 数据库原理与应用教程课后答案何玉洁 › 数据库原理与应用第三版何玉洁第五章上机练习答案 |
3 create table sell( Bno char(6) not NULL, Stono char(6) not NULL, Stime smalldatetime not NULL, Sno tinyint check (Sno >= 1), Primary key(Bno,Stono,Stime), foreign key (Bno) references book(Bno), foreign key (Stono) references bookstore(Stono) ) 2) alter table book add printnum int check(printnum>=1000) 3) alter table bookstore drop column Postcode 4) alter table sell drop constraint CK__sell__Sno__398D8EEE(这个是我电脑自动的约束名) alter table sell alter column Sno int alter table sell add constraint sellcheck check(Sno >=1) 这里如果只用第二个命令会报错 |
CopyRight 2018-2019 实验室设备网 版权所有 |