沈 阳 大 学
课程设计说明书 NO.7
2.4功能实现
Create database tushuguanli
On
(
name='tushuguanli_data',
Filename='c:\progrom files\microsoft sql sever\mssql\data\tushuguanli.mdf',
Maxsize=100MB,
Filegrowth=10%
)
Log on
(
name='tushuguanli_log',
Filename='c:\progrom files\microsoft sql sever\mssql\data\tushuguanli_log.ldf',
Size=2MB,
Maxsize=40MB,
Filegrowth=1MB
)
go\\建立数据库
Use tushuguanli
Create table users
(
UserID Char(10) not null primary key,
Loginname Char(20) not null,
Address Char(150),
沈 阳 大 学
课程设计说明书 NO.8
Password Char(16) not null,
Phone Char(16),
Email Char(50),
Regtime datetime not null
)Go\\建立用户信息表
Use tushuguanli
Create table book
(BookID Char(10) not null primary key,
Bookname Char(100) not null,
Bookcategory Char(10) not null,
Author Char(50) not null,
Publish Char(50) not null,
Price int(50) not null,
Saleprice Char(50) not null,
Content Char(200) not null,
Descript Char(200) not null,
Regate datetime not null
)
Go\\建立图书信息表
Use tushuguanli
Create table BookCategory
(
CategoryID Char(10) not null primary key,
Categoryname Char(50) not null
沈 阳 大 学
课程设计说明书 NO.9
)
Go\\建立图书类别表
Use tushuguanli
Create table OrderInfo
(OnlyID Char(10) not null primary key,
OrderID Char(32) not null foreign key references orders (orderid),
BookID Char(10) not null foreign key references book (bookid),
Amount Char(10) not null)\\建立订购单基本信息表
Use tushuguanli
Create table Orders
(OrderID Char(32) not null primary key,
Submittime datetime not null,
Totalprice Char(50) not null,
UserID Char(10) not null foreign key references users (userid),
Ordercontent Char(200) not null,
Isdiliver Char(10) not null,
Ispay Char(10) not null
)Go\\建立订购单详细信息表
#include "stdafx.h"
#include "图书出版管理系统.h"
//开始声明
#include "MyDlg1.h"
#include "MyDlg2.h"
//结束声明
#include "图书出版管理系统Set.h"
#include "图书出版管理系统Doc.h"
#include "图书出版管理系统View.h"
上一页 [1] [2] [3] [4] [5] [6] 下一页