数据库销售订单管理系统课程设计
目 录
1.引言...........................................................................................................................................................................1
1.1 编写目的..............................................................................................................................................................1
1.2 参考资料..............................................................................................................................................................1
2.需求规约......................................................................................................................................................................2
2.1 业务描述..............................................................................................................................................................2
2.2 需求分析..............................................................................................................................................................3
3.数据库环境说明..........................................................................................................................................................3
4.数据库的命名规则......................................................................................................................................................4
4.1 数据库对象命名规则..........................................................................................................................................4
4.2 数据项编码规则..................................................................................................................................................5
5.逻辑设计......................................................................................................................................................................6
5.1 ER 图....................................................................................................................................................................6
....................................................................................................................................................................................6
5.2 关系模型..............................................................................................................................................................6
6.物理设计......................................................................................................................................................................7
6.1 表汇总...................................................................................................................................................................7
6.2 表[1]:[ SUPPLIERS 表](供应商表)........................................................................................................................8
6.3 表[2]:[PRODUCT 表](产品表)................................................................................................................................8
6.4 表[3]:[SP 表](供应商产品供应表).......................................................................................................................9
6.5 表[4]:[ ORDERS 表](订单表)...............................................................................................................................10
6.6 表[5]:[PO 表](产品订购表)................................................................................................................................10
6.7 表[6]:[ EMPLOYEE 表](雇员表)...........................................................................................................................11
6.8 表[7]:[CUSTOMER 表](客户表)...........................................................................................................................12
6.9 视图的设计........................................................................................................................................................12
6.10 存储过程的设计..............................................................................................................................................13
6.11 触发器的设计...................................................................................................................................................38
6.12 函数的设计......................................................................................................................................................39
7.安全性设计................................................................................................................................................................40
7.1 防止用户直接操作数据库的方法....................................................................................................................40
7.2 用户帐号密码的加密方法................................................................................................................................40
7.3 角色与权限.........................................................................................................................................................41