/* ================================================================================ 档案代号:tup_file 档案名称:客户库存明细档 档案目的: 上游档案: 下游档案: ============.========================.========================================== */ create table tup_file ( tup01 varchar2(10) NOT NULL, /*客户代号 */ tup02 varchar2(40) NOT NULL, /*商品代号 */ tup03 varchar2(24) NOT NULL, /*批号 */ tup04 varchar2(4), /*库存单位 */ tup05 number(15,3), /*库存数量 */ tup06 date, /*有效日期 */ tup07 date, /*第一次入库日 */ tup11 varchar2(1) NOT NULL, /*库存类别 */ tup12 varchar2(10) NOT NULL, /*送货客户 */ tup08 varchar2(1), /*No Use */ tup09 varchar2(10) /*No Use */ ); create unique index tup_pk on tup_file (tup01,tup02,tup03,tup11,tup12); alter table tup_file add constraint tup_pk primary key (tup01,tup02,tup03,tup11,tup12) enable validate; grant select on tup_file to public; grant index on tup_file to public; grant update on tup_file to public; grant delete on tup_file to public; grant insert on tup_file to public; |