服装管理系统数据库代码.doc_第1页
服装管理系统数据库代码.doc_第2页
服装管理系统数据库代码.doc_第3页
服装管理系统数据库代码.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

/*员工信息表(employee)*/create table employee( ygid int primary key, /*员工编号,主键*/ ygname varchar(10) not null, /*员工姓名*/ ygtitle varchar(10) not null, /*职称*/ ygsex varchar(2) not null, /*员工性别*/ ygtelephone varchar(11) , /*员工电话*/ ygpassword varchar(32) not null, /*密码*/ ygstate varchar(10) not null /*状态*/)/*会员信息表(associator)*/ create table associator( hyid int primary key, /*会员编号,主键*/ hyname varchar(10) not null, /*会员姓名*/ hysex varchar(2) not null, /*会员性别*/ hytelephone varchar(11), /*会员电话*/ hytotal float not null /*消费总额*/)/*供应商信息表(supplier)*/create table supplier(gysid int primary key, /*编号供应商,主键*/gysname varchar(30) unique, /*供应商名称*/gystelephone varchar(11) not null, /*供应商电话*/gysaddress varchar(30) not null, /*供应商地址*/gyslinkman varchar(10) not null, /*联系人*/gysremark varchar(50) /*备注*/)/*服装基本信息表(clothing)*/create table clothing(fzid varchar(14) primary key, /*服装编号,主键*/fzname varchar(30) not null, /*服装名称*/fztype varchar(10) not null, /*服装类型*/fztype1 varchar(10) not null, /*服装类型1*/fztype2 varchar(10) not null, /*服装类型2*/fzseason varchar(10) not null, /*适合季节*/fzsize varchar(10) not null, /*尺码*/fzcolour varchar(10) not null, /*颜色*/fzprice float not null /*服装单价*/)/*服装类型基本信息表(type)*/*入库信息表(record)/入库临时信息表(record1)*/create table record(rkid int , /*入库编号*/fzid varchar(14), /*服装编号*/rknumber int not null, /*入库数量*/rkprice float not null, /*进货单价*/gysid int not null, /*供应商编号*/rkdate datetime not null, /*入库日期*/rkname varchar(10) not null /*操作人*/primary key (rkid,fzid) /*主键(入库编号、服装编号)*/)/*库存信息表(stock)/库存临时信息表(stock1)*/create table stock(fzid varchar(14) primary key, /*服装编号*/kcnumber int not null /*库存数量*/)/*销售信息表(sell)/销售临时信息表(sell1)*/create table sell(xsid int , /*销售编号*/fzid varchar(14) , /*服装编号*/xsnumber int not null, /*销售数量*/xsprice float not null, /*原价*/xsdiscount float not null, /*折扣*/xstotal float not null, /*销售总价*/xsdate datetime not null, /*销售日期*/xstab varchar(10), /*退货标记*/xsname varchar(10) not null, /*操作人*/primary key (xsid,fzid) /*主键(销售编号、服装编号)*/)/*客户表(customer)*/create table customer(xsid int primary key, /*销售编号,主键*/khmoney float not null, /*客户金额*/sfmoney float not null, /*实付金额*/thmoney float not null /*找回金额*/)/*退货信息表(back)*/create table back(xsid int, /*销售编号*/fzid varchar(14), /*服装编号*/thnumber int not null, /*退货数量*/thtotal float not null, /*退回金额*/thdate datetime not null, /*退货日期*/thname varchar(10) not null, /*操作人*/primary key (xsid,fzid) /*主键(销售编号、服装编号)*/)/*盘点信息表(inventory)/盘点临时信息表(inventory1)*/create table inventory(pdid int , /*盘点编号*/fzid varchar(14), /*服装编号*/kcnumber int not null, /*库存数量*/pdnumber int not null, /*实际数量*/pypknumber int not null, /*盘盈盘亏数量*/pddate datetime not null, /*盘点日期*/pdname varchar(10) not null, /*操作人*/primary key(pdid,fzid) /*主键(盘点编号、服装编号)*/)/*金额统计信息表(profit)*/create table profit(fzid varchar(14) primary key, /*服装编号,主键*/rknumber int not null, /*入库数量*/averageprice float not null, /*平均单价*/totalcost float not null, /*总成本*/xsnumber int not null, /*销售数量*/xscost float not null, /*销售成本*/xstotal float not null, /*销售总额*/xsprofit float not null /*销售总利润*/)/*金额统计信息表(profit1)*/create table profit1(fzid varchar(14) primary key, /*服装编号,主键*/rknumber int not null, /*入库数量*/averageprice float not null, /*平均单价*/totalcost float not null, /*总成本*/)/*金额统计信息表(profit2)*/create table profit2(fzid varchar(14) primary key, /*服装编号,主键*/xsnumber int not null, /*销售数量*/xstotal float not null, /*销售总额*/)/*服装销售统计信息表(statistic)/服装销售统计临时信息表(statistic1)/服装销售统计临时信息表(statistic2)*/create table statistic(fzid varchar(14) primary key, /*服装编号或员工名称,主键*/january int , /*一月*/february int , /*二月*/march int , /*三月*/apri

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论