玩转Oracle 实战教程.ppt

玩转Oracle 实战教程

* *画图说明 * * * * * * * * * * * * 可以建表演示一下. * * 可以建表演示一下. * create table customer (customerId char(8) primary key, name varchar2(20) not null, address varchar2(30), email varchar2(30) unique, sex char(2) default 男 check (sex in(男,女)) , cardId char(18)) create table purchase (customerId char(8) references customer(customerid), goodsId char(8) references goods(goodsid), nums number(10) check (nums between 1 and 30), primary key (customerId,goodsId)) * alter table goods modify goodsName not null; alter table customer add constraint aaa unique(cardId); alter table customer add constraint aaabb che

文档评论(0)

1亿VIP精品文档

相关文档