当前位置: 主页 > 数据库

网上书店系统 数据库-网上二手书店的swot

发布时间:2023-02-09 10:20   浏览次数:次   作者:佚名

《数据库课程设计》 设计课题:网上书店管理系统 班级:川海1101 设计者:郭英豪 学号:U201115491 指导教师:董敏勤 一、需求分析 1.1 数据需求 网上书店管理信息系统需要完成的主要功能: 1. 输入各种图书的基本信息,包括书名、书号、出版年份、价格。 2、图书基本信息的查询和修改,包括书名、书号、出版年份、价格等。 3、输入图书作者的基本信息,包括姓名、地址、个人主页。 4、图书作者基本信息查询、删除,包括姓名、地址、个人主页等 5、出版社信息录入网上书店系统 数据库,包括出版社名称、地址、电话 15387295596、网址等 6、查询、删除删除出版社基本信息,包括出版社名称、地址、联系电话 15387295596、网址等。 7、输入购物车相关信息网上书店系统 数据库,包括购物车号、采购数量。 8、购物车信息的查询和修改,包括购物车号、购买数量等。 9、输入消费者相关信息,包括姓名、邮箱、地址、电话号码。 10、消费者相关信息的查询和修改,包括姓名、邮箱、地址、电话等。 11、仓库相关信息的录入,包括仓库号、地址、电话、存书量等。 12、库房相关信息的查询和修改,包括库号、地址、电话、存书等。

网上电子书店_网上书店系统 数据库_网上二手书店的swot

1.2 Things 需求(1)图书信息管理部分,需求:a.可以浏览图书、作者、出版商信息。b.可以添加、删除图书、作者、出版商信息。(2关于图书网站 销售信息管理部分要求: a. 可以查询消费者的相关信息和购物车信息,拥有图书数量 b. 可以维护消费者的相关信息和购物车和他拥有的图书数量,包括添加和删除操作。(3 图书仓库管理部分,要求:a.可以浏览各个仓库的图书收藏信息。b.可以维护图书收藏信息2. 数据库设计 2.1 实体模型 12.2 ER图转关系图(下划线为主要属性) 2.3 数据字典作者表book表btoa表btop表Publisher 表customer 表Shopping-basket 表Btos 表Warehouse 表Btop 表3.关系图的建立4.功能实现4.1 创建数据库:创建数据库bookshop; 4.2 创建数据表: (1 book table create table book(ISBN int primary key, title char(20, wyearsmallint, price real; (2 author table create table author(name char(20, waddress char( 40,URL char(50primary key(name,waddress;(3 btoa table create table btoa(ISBN int primary key,name char(20,waddress char(40,foreign key(ISBNreferences book(ISBN,foreign key(name,waddressreferences author (name,waddress ;( 4 publisher table create table publisher(name char(20 primary key,paddress char(40,phoneint,URL char(50;(5 btop table create table btop(ISBN int primary key,name char(20, foreign key(ISBN references book (ISBN, 外键(namereferences es publisher(name;(6 customer table create table customer(cemail char(50primary key,name char(20,caddress char(40,phoneint;(7 shopping_basket table create table shopping_basket(basketIDint primary key, cemail char(50,foreign key (cemailreferences customer(cemail;(8 btos table create table btos(ISBN int,basketIDint,numbersmallint,primary key(ISBN,basketID,for eign key(ISBNreferences book(ISBN,foreign key(basketIDreferences shopping_basket(basketID;(9 warehouse table create table warehouse(codesmallint primary key,phoneint,whaddress char(40;(10 btow table create table btow(ISBN int,codesmallint,numbersmallint,主键(ISBN,代码,外键(ISBN参考书(ISBN,外键(代码参考仓库(代码; 5。 数据操作(插入、查询、删除、修改、添加) 5.1 插入(1 insert information into book table insert into book values('1644','Kite Runner','2003','25' ;insert into student values(' 28317','致青春','2012','29.8' ; insert into student values('838971','The Great Gatsby','1876','14.8' ; (2 to the author table Insert information insert into author values('Fitzgerald','华中科技大学','' ;insert into author values('Hosseini','Wuhan University', '' ;insert in author values('Xinyiwu','华中农业大学', '' ;(3 insert information into btoa table insert into btoa values('1644','Hosseini','Wuhan University' ;insert into btoa values('28317','Xinyiwu','华中农业大学' ;insert into btoa values('838971','Fitzgerald','华中科技大学' ; (4 Insert information into the publisher table insert into publisher values('招华出版社','北京',,'' ; insert into publisher values ('航空工业 try Press','北京','120​​',''; insert into publisher values('人民出版社','上海','110','www.ewen.cc' ;(5 Insert information into btop table insert into btop values('1644','人民出版社';insert into btop values('28317','朝华出版社';insert into btop values('838971','航空工业出版社';(6 insert information into customer table insert into customer values('11111@','hee', '湖南大学', '114' ;插入客户价值(163.com','哈哈','清华大学','911' ;插入客户价值('365282758@','郭英豪','华中大学' of Science and Technology','119'; (7 Insert information into shopping_basket table insert into shopping_basket values('1','365282758@';insert into shopping_basket values('2',163.com';insert into shopping_basket values( '3','11111@' ; (8 Insert information into btos table insert into btos values('1644','1','2';insert intobtos values('28317','3','4';i nsert into btos values('838971','2','3'; (9 Insert information into warehou se table insert into warehouse values('1001','674382','Wuhan City' ;insert into warehouse values('1002','674383','Changsha City' ;insert into warehouse values('1003','674384' ,'上海市'; (10 insert information into btow table insert into btow values('1644','1002','800'; insert into btow values('28317','1003','female','10000' ; insert into btow values( '838971','1001','female','500' ; 5.2查询(1查询价格28元以下图书作者信息:select author.* from author,btoa,bookwhere book.ISBN =btoa.ISBN and btoa .name =author .name and book .ISBN in(select book .ISBN from book where price

网上二手书店的swot_网上书店系统 数据库_网上电子书店