/* ================================================================================ 档案代号:imk_file 档案名称:料件储位期间/月统计档 档案目的: 上游档案: 下游档案: ============.========================.========================================== */ create table imk_file ( imk01 varchar2(40) NOT NULL, /*料件编号 */ imk02 varchar2(10) NOT NULL, /*仓库编号 */ imk03 varchar2(10) NOT NULL, /*储位编号 */ imk04 varchar2(24) NOT NULL, /*批号 */ imk05 number(5) NOT NULL, /*年度 */ /*年度yyyy */ imk06 number(5) NOT NULL, /*期别 */ imk081 number(15,3), /*本期入库统计量 */ imk082 number(15,3), /*本期销货统计量 */ imk083 number(15,3), /*本期领用统计量 */ imk084 number(15,3), /*本期转拨统计量 */ imk085 number(15,3), /*本期调整统计量 */ imk086 number(15,3), /*No Use */ imk087 number(5), /*No Use */ imk088 number(5), /*No Use */ imk089 number(5), /*No Use */ imk09 number(15,3) /*期末数量 */ ); create unique index imk_pk on imk_file (imk01,imk02,imk03,imk04,imk05,imk06); alter table imk_file add constraint imk_pk primary key (imk01,imk02,imk03,imk04,imk05,imk06) enable validate; grant select on imk_file to public; grant index on imk_file to public; grant update on imk_file to public; grant delete on imk_file to public; grant insert on imk_file to public; |