網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc

上傳人:good****022 文檔編號(hào):116486197 上傳時(shí)間:2022-07-05 格式:DOC 頁數(shù):21 大小:1.13MB
收藏 版權(quán)申訴 舉報(bào) 下載
網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc_第1頁
第1頁 / 共21頁
網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc_第2頁
第2頁 / 共21頁
網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc_第3頁
第3頁 / 共21頁

下載文檔到電腦,查找使用更方便

12 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc》由會(huì)員分享,可在線閱讀,更多相關(guān)《網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫課程設(shè)計(jì).doc(21頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、數(shù)據(jù)庫原理與應(yīng)用數(shù)據(jù)庫原理與應(yīng)用課程設(shè)計(jì)課程設(shè)計(jì) 網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫設(shè)計(jì)網(wǎng)上書店管理系統(tǒng)數(shù)據(jù)庫設(shè)計(jì) 2008 年 12 月 目錄目錄 1.1.概述概述 1 1 1.1.項(xiàng)目背景 1 1.2.系統(tǒng)說明 1 2.2.需求分析需求分析 1 1 2.1.需求分析 1 2.2.數(shù)據(jù)需求 1 2.3.事物需求 2 2.4.數(shù)據(jù)字典 2 3.3.方案圖表設(shè)計(jì)方案圖表設(shè)計(jì) 3 3 3.1.關(guān)系模式 4 3.2.E-R 圖 .4 3.2.1.顧客信息實(shí)體 E-R 圖: 4 3.2.2.書籍信息實(shí)體 E-R 圖:5 3.2.3.訂單實(shí)體 E-R 圖:5 3.2.4.管理員信息實(shí)體 E-R 圖:6 3.2.5.

2、庫存信息實(shí)體 E-R 圖:6 3.2.6. 信息實(shí)體 E-R 總圖7 3.3.數(shù)據(jù)流程圖 7 3.4.關(guān)系圖: 8 4.4.數(shù)據(jù)庫源代碼數(shù)據(jù)庫源代碼 1 10 0 4.1.數(shù)據(jù)庫建立 .10 4.1.1.創(chuàng)建數(shù)據(jù)庫.10 4.1.2.創(chuàng)建顧客表.10 4.1.3.創(chuàng)建書籍表.10 4.1.4.創(chuàng)建訂單表.11 4.1.5.創(chuàng)建管理員表.11 4.1.6.創(chuàng)建庫存表.11 4.2.數(shù)據(jù)初始化 .12 4.2.1.將已有的顧客加入表 system_customers 中12 4.2.2.將已有的圖書加入 system_books 表中12 4.2.3.將已有的訂單加入 system_ordernu

3、mbers 表中.13 4.2.4.將已有的管理員加入 syetem_managers 表中.14 4.2.5.將庫存中的書籍加入 system_store 表中 14 5.5.結(jié)果數(shù)據(jù)處理結(jié)果數(shù)據(jù)處理 1 15 5 5.1.單表查詢 .15 5.1.1.表 system_customers 中查詢15 5.1.2.表 system_books 中查詢16 5.1.3.表 system_ordernumbers 中查詢.16 5.1.4.表 system_managers 中查詢.16 5.1.5. 表 system_store 中查詢16 5.1.6. 將已有的圖書加入 system_boo

4、ks 中查詢16 5.1.7. 將已有的訂單加入 syetem_ordernumbers 中查詢.17 6.6.結(jié)束語結(jié)束語 1 17 7 7.7.參考文獻(xiàn)參考文獻(xiàn) 1 17 7 1.1.概述概述 1.11.1. .項(xiàng)目背景項(xiàng)目背景 隨著網(wǎng)絡(luò)信息的發(fā)展,網(wǎng)絡(luò)在人們生活中的應(yīng)用越來越廣泛。人們?cè)絹碓较朐谧疃痰?時(shí)間內(nèi)購買到自己所需的圖書。但書目的繁多,給人們?cè)诜泵Φ墓ぷ魃钪匈彆鴰砹撕?大的麻煩,于是網(wǎng)上購書便成了人們向往的事情,此系統(tǒng)的開發(fā)為人們帶來了很大的方便, 使他們足不出戶就可以輕輕松松地買到自己想要的書,既省時(shí)又省力。 在電子商務(wù)網(wǎng)站中,網(wǎng)上書店是目前應(yīng)用最廣、最成功的典范之一。通過

5、它用戶可以 在網(wǎng)絡(luò)上通過 Internet,突破時(shí)間和空間的限制而實(shí)現(xiàn)網(wǎng)上購書。網(wǎng)上書店的崛起對(duì)傳統(tǒng)的 圖書流通體系產(chǎn)生了強(qiáng)烈的沖擊,有效地縮短了圖書流通發(fā)行環(huán)節(jié),將廣大讀者、圖書、 出版者、發(fā)行者緊密地結(jié)合在一起,大大提高了圖書流通率。它有著經(jīng)營成本低、庫存是 虛擬的、用戶檢索方便、地域限制少等特點(diǎn)。 更好地適應(yīng)了當(dāng)前書店的銷售需求,緩解了手工管理存在的弊端。 1.2.1.2. 系統(tǒng)說明系統(tǒng)說明 網(wǎng)上書店管理系統(tǒng)可以存儲(chǔ)店中所有圖書的資料以及庫存情況,具有安全,高效的特 性;只需一到二名檔案錄入員即可操作系統(tǒng),節(jié)省大量人力;可以迅速查到所需信息;系 統(tǒng)對(duì)軟,硬件方面的需求不高,軟件要求易學(xué),

6、容易掌握,可以很簡單方便地管理圖書信 息。硬件的配置要求不能太高,這樣可以很好的適應(yīng)當(dāng)前的各類書店。運(yùn)行環(huán)境是 Windows XP,所用到的軟件是 MySQL2008。 2.2.需求分析需求分析 2.1.2.1. 需求分析需求分析 網(wǎng)上書店是指利用互聯(lián)網(wǎng)絡(luò)來實(shí)現(xiàn)圖書銷售業(yè)務(wù)的一種新型圖書零售渠道。網(wǎng)上書店 訂單處理速度快,服務(wù)范圍寬,存書量大,讀者坐在家里就可以“逛書店”。 2.2.2.2. 數(shù)據(jù)需求數(shù)據(jù)需求 網(wǎng)上書店管理系統(tǒng)需要完成功能有: 1.顧客基本信息的輸入,包括注冊(cè)名、顧客真實(shí)姓名、家庭住址、聯(lián)系方式、訂單號(hào)。 2.顧客基本信息的查詢、修改,包括注冊(cè)名、顧客真實(shí)姓名、家庭住址、聯(lián)系

7、方式, 訂單號(hào)等。 3.書籍類別標(biāo)準(zhǔn)的制定、類別信息的輸入,包括類別編號(hào)、類別名稱。 4.書籍類別信息的查詢、修改,包括類別編號(hào)、類別名稱。 5.書籍信息的輸入,包括書籍的編號(hào)、書籍名稱、書籍類別、作者姓名、出版 社名稱、出版日期。 6.書籍信息的查詢、修改,包括書籍的編號(hào)、書籍名稱、書籍類別、作者姓名、 出版社名稱、出版日期。 7.訂單信息的輸入,包括訂單號(hào)、訂購人、訂購日期、訂購書籍的編號(hào)、書籍?dāng)?shù) 量、發(fā)貨日期。 8.訂單信息的查詢、修改,包括訂單號(hào)、訂購人、訂購日期、訂購書籍的編號(hào)、 書籍?dāng)?shù)量、發(fā)貨日期。 9.庫存信息的輸入,包括書籍的編號(hào)、庫存量、價(jià)格。 10.庫存信息的查詢、修改,包

8、括書籍的編號(hào)、庫存量、價(jià)格。 11.管理員信息的輸入,包括管理員編號(hào)、具體身份。 12.管理員信息的查詢、修改,包括管理員編號(hào)、具體身份。 2.3.2.3. 事物需求事物需求 (1)在顧客信息管理部分,要求: a.可以查詢讀顧客信息。 b.可以對(duì)顧客信息進(jìn)行添加及刪除的操作。 (2 )在書籍信息管理部分,要求: a.可以瀏覽書籍信息。 b.可以對(duì)書籍信息進(jìn)行維護(hù),包括添加及刪除的操作。 (3)在庫存信息管理部分,要求: a.可以瀏覽庫存信息。 b.可以對(duì)庫存信息進(jìn)行添加及刪除的操作。 (4)在訂單信息管理部分,要求: a.可以瀏覽訂單信息。 b.可以對(duì)訂單信息進(jìn)行維護(hù),包括添加及刪除的操作。

9、(5)在管理者信息管理部分,要求: a.顯示當(dāng)前數(shù)據(jù)庫中管理者情況。 b.對(duì)管理者信息維護(hù)操作。 2.4.2.4. 數(shù)據(jù)字典數(shù)據(jù)字典 表 0-1 system_customers 顧客信息表格 表中列名表中列名數(shù)據(jù)類型數(shù)據(jù)類型可否為空可否為空說明說明 customeridvarcharnot null(主鍵主鍵)顧客注冊(cè)號(hào)顧客注冊(cè)號(hào) customernamevarcharnot null顧客姓名顧客姓名 customeraddressvarcharnot null顧客地址顧客地址 customerlinkvarcharnot null顧客聯(lián)系方式顧客聯(lián)系方式 ordernumbervarcha

10、rNot null(外主鍵外主鍵)訂單號(hào)訂單號(hào) 表 0-2 system_books 書籍信息表 表中列名表中列名數(shù)據(jù)類型數(shù)據(jù)類型可否為空可否為空說明說明 bookidVarcharNot null(主鍵主鍵)書籍編號(hào)書籍編號(hào) booknameVarcharNot null書籍名稱書籍名稱 bookstyleVarcharNot null書籍類別書籍類別 bookauthorVarcharNot null書籍作者書籍作者 bookpubVarcharNot null出版社名稱出版社名稱 bookpubdateDatetimeNot null出版日期出版日期 bookpriceVarcharNo

11、t null價(jià)格價(jià)格 表 0-3 system_ordernumbers 訂單信息表 表中列名表中列名數(shù)據(jù)類型數(shù)據(jù)類型可否為空可否為空說明說明 ordernumberVarcharNot null(主鍵主鍵)訂單號(hào)訂單號(hào) bookidVarcharNot null(外主鍵外主鍵)書籍編號(hào)書籍編號(hào) customeridVarcharNot null(外主鍵外主鍵)顧客注冊(cè)號(hào)顧客注冊(cè)號(hào) customernameVarcharNot null顧客姓名顧客姓名 customerlinkVarcharNot null顧客聯(lián)系方式顧客聯(lián)系方式 customeraddressVarcharNot null顧

12、客家庭住址顧客家庭住址 booknumberVarcharNot null書籍?dāng)?shù)量書籍?dāng)?shù)量 orderdateDatetimeNot null訂購日期訂購日期 deliverdateDatetimeNot null發(fā)貨日期發(fā)貨日期 bookpriceVarcharNot null價(jià)格價(jià)格 表 0-4 system_managers 管理員信息表 表中列名表中列名數(shù)據(jù)類型數(shù)據(jù)類型可否為空可否為空說明說明 manageridVarcharNot null(主鍵主鍵)管理員編號(hào)管理員編號(hào) managerroleVarcharNot null管理員身份管理員身份 表 0-5 store_records

13、 庫存記錄信息表 表中列名表中列名數(shù)據(jù)類型數(shù)據(jù)類型可否為空可否為空說明說明 bookidVarcharNot null(外主鍵外主鍵)書籍編號(hào)書籍編號(hào) storenumberVarcharNot null庫存量庫存量 bookpriceVarcharNot null價(jià)格價(jià)格 3.3.方案圖表設(shè)計(jì)方案圖表設(shè)計(jì) 3.1.3.1. 關(guān)系模式關(guān)系模式 (1)顧客(注冊(cè)名、顧客真實(shí)姓名、家庭住址、聯(lián)系方式、訂單號(hào)) (2)書籍(書籍的編號(hào)、書籍名稱、書籍類別、作者姓名、出版社名稱、出版日期、價(jià)格) (3)訂單(訂單號(hào)、訂購人注冊(cè)號(hào)、訂購日期、訂購書籍的編號(hào)、書籍?dāng)?shù)量、發(fā)貨日期、 訂購人姓名、訂購人家庭住

14、址、訂購人聯(lián)系方式、價(jià)格) (4)管理員(管理員編號(hào)、具體身份) (5)庫存(書籍的編號(hào)、庫存量、價(jià)格) 3.2.3.2. E-RE-R 圖圖 根據(jù)所要實(shí)現(xiàn)的功能設(shè)計(jì),可能建立它們之間的關(guān)系,進(jìn)而實(shí)現(xiàn)邏輯結(jié)構(gòu)功能。 網(wǎng)上書店管理系統(tǒng)可以劃分的實(shí)體有:顧客信息實(shí)體、書籍信息實(shí)體、訂單信息實(shí)體、管 理員信息實(shí)體,庫存信息實(shí)體。用 E-R 圖一一描述這些實(shí)體。 3.2.1.3.2.1. 顧客信息實(shí)體顧客信息實(shí)體 E-RE-R 圖:圖: 圖 0-1 類別實(shí)體 E-R 圖 3.2.2.3.2.2. 書籍信息實(shí)體書籍信息實(shí)體 E-RE-R 圖:圖: 圖 0-2 書籍信息實(shí)體 E-R 圖 3.2.3.3.2

15、.3. 訂單信息實(shí)體訂單信息實(shí)體 E-RE-R 圖:圖: 圖 0-3 訂單信息實(shí)體 E-R 圖 3.2.4.3.2.4. 管理員信息實(shí)體管理員信息實(shí)體 E-RE-R 圖:圖: 圖 0-4 管理員信息實(shí)體 E-R 圖 3.2.5.3.2.5. 庫存信息實(shí)體庫存信息實(shí)體 E-RE-R 圖:圖: 圖 0-5 庫存信息實(shí)體 E-R 圖 3.2.6.3.2.6. 信息實(shí)體信息實(shí)體 E-RE-R 總圖:總圖: 圖 0-6 信息實(shí)體 E-R 總圖 3.3.3.3. 數(shù)據(jù)流程圖:數(shù)據(jù)流程圖: 3.4.3.4. 關(guān)系圖:關(guān)系圖: 4.4. 數(shù)據(jù)庫源代碼數(shù)據(jù)庫源代碼 4.1.4.1. 數(shù)據(jù)庫建立數(shù)據(jù)庫建立 4.1

16、.14.1.1 創(chuàng)建數(shù)據(jù)庫創(chuàng)建數(shù)據(jù)庫 USE master GO CREATE DATABASE bookshopsystem ON ( NAME = bookshopsystem, FILENAME = d:bookshopsystem.mdf, SIZE = 10, MAXSIZE = 50, FILEGROWTH = 5 ) LOG ON ( NAME = bookshop, FILENAME = d:bookshopsystem.ldf, SIZE = 5MB, MAXSIZE = 25MB, FILEGROWTH = 5MB ) GO 4.1.2.4.1.2. 創(chuàng)建顧客表創(chuàng)建顧客表

17、create table system_customers ( customerid varchar(20) primary key, customername varchar(30) not null, customeraddress varchar(30) not null, customerlink varchar(20) not null, ordernumber varchar(20) not null, foreign key (ordernumber) references system_ordernumbers (ordernumber), ) 4.1.3.4.1.3. 創(chuàng)建書

18、籍表創(chuàng)建書籍表 create table system_books ( bookid varchar(20) primary key, bookname varchar(30) not null, boostyle varchar(30) not null, bookauthor varchar(20) not null, bookpub varchar(30) not null, bookpubdate datetime not null, bookprice varchar(10)not null, ) 4.1.4.4.1.4. 創(chuàng)建訂單表創(chuàng)建訂單表 create table system

19、_ordernumbers ( ordernumber varchar(20) primary key, bookid varchar(20) not null, customerid varchar(20) not null, customername varchar(30) not null, customeraddress varchar(30) not null, customerlink varchar(20) not null, booknumber varchar(10) not null, orderdate datetime not null, deliverdate dat

20、etime not null, bookprice varchar(10) not null, foreign key (bookid) references system_books (bookid), foreign key (customerid) references system_customers (customerid), ) 4.1.5.4.1.5. 創(chuàng)建管理員表創(chuàng)建管理員表 create table system_managers ( managerid varchar(10) primary key, managerrole varchar(20) not null, )

21、4.1.64.1.6 創(chuàng)建庫存表創(chuàng)建庫存表 create table system_store ( bookid varchar(20) not null, storenumber varchar(10) not null, bookprice varchar(10) not null, foreign key (bookid) references system_books (bookid), ) 4.2.4.2. 數(shù)據(jù)初始化數(shù)據(jù)初始化 4.2.1.4.2.1. 將已有的顧客加入將已有的顧客加入system_customers 表中表中 insert into system_customer

22、s(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287520 , 朵林,北京市西城區(qū)德外大街 4 號(hào),13907654217,001); insert into system_customers(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287521,張小玲,北京市海淀區(qū)圓明園西路 2 號(hào),13698943268,002); insert in

23、to system_customers(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287522,馬思遠(yuǎn),北京市百萬莊大街 22 號(hào),13527416305,003); insert into system_customers(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287523,劉俊彥,廣州市藝苑路東慶街 2 號(hào),13962025782,0

24、04); insert into system_customers(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287524,夏林,上海市肇嘉路 366 號(hào),13976584389,005); insert into system_customers(customerid , customername , customeraddress , customerlink , ordernumber ) values(285287525,慕芝陽,上海市淮海中路 222 號(hào),1

25、5120696986,006); 4.2.2.4.2.2. 將已有的圖書加入將已有的圖書加入 system_bookssystem_books 表中表中 insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(00125415152,計(jì)算機(jī)組成原理,人文藝術(shù)類,王愛英,清華大學(xué)出版社,2001-01- 03,25); insert into system_books(bookid, bookname, boostyle, bookautho

26、r, bookpub, bookpubdate, bookprice ) values(00456456,數(shù)據(jù)庫原理,人文藝術(shù)類, 薩師煊,高等教育出版社,2007-07-02,26); insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(12215121,C 程序設(shè)計(jì),人文藝術(shù)類,譚浩強(qiáng),清華大學(xué)出版社,2002-04-02,30); insert into system_books(bookid, bookname, boostyl

27、e, bookauthor, bookpub, bookpubdate, bookprice ) values(9787308020558,計(jì)算機(jī)體系結(jié)構(gòu),人文藝術(shù)類,石教英,浙江大學(xué)出版社,2004- 10-03,28); insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(45456141414,數(shù)據(jù)結(jié)構(gòu)(C 語言版),人文藝術(shù)類,嚴(yán)蔚敏,清華大學(xué)出版社 ,2002-06-28,28); insert into system_boo

28、ks(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(5455515,中華歷史 5000 年,人文藝術(shù)類,吳強(qiáng),北京大學(xué)出版社,2005-04-03,20); insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(015115,古代埃及,社會(huì)科學(xué)類,趙文華,北京大學(xué)出版社,2001-02-02,22); insert into

29、 system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(1514514,日本文化,人文藝術(shù)類,吳小鵬,北京大學(xué)出版社,2002-04-02,35); insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(15154656,微觀經(jīng)濟(jì)學(xué),政治經(jīng)濟(jì)類,李小剛,北京大學(xué)出版社,2000-10-03,38); ins

30、ert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(5658,影視文學(xué),圖片藝術(shù)類,蘇慶東,北京大學(xué)出版社,1999-02-28,29); insert into system_books(bookid, bookname, boostyle, bookauthor, bookpub, bookpubdate, bookprice ) values(565800020,探索宇宙奧秘,自然科學(xué)類,蘇慶東,北京大學(xué)出版社,1999-02- 28,

31、24); 4.2.3.4.2.3. 將已有的訂單加入將已有的訂單加入 system_ordernumberssystem_ordernumbers 表中表中 insert into system_ordernumbers(ordernumber, bookid, customerid, customername, customerlink, customeraddress, booknumber, orderdate, deliverdate, bookprice) values(001,1514514,285287520 ,朵林,13907654217,北京市西城區(qū)德外大街 4 號(hào) ,1,2

32、010-02-16,2010-02-17,35); insert Into system_ordernumbers(ordernumber, bookid, customerid, customername, customerlink, customeraddress, booknumber, orderdate, deliverdate, bookprice) values(002,00125415152,285287521,張小玲,13698943268,北京市海淀區(qū)圓明園西 路 2 號(hào),1,2010-03-07,2010-03-08,25); insert Into system_ord

33、ernumbers(ordernumber, bookid, customerid, customername, customerlink, customeraddress, booknumber, orderdate, deliverdate, bookprice) values(003,5455515,285287522,馬思遠(yuǎn),13527416305,北京市百萬莊大街 22 號(hào) ,1,2010-03-15,2010-03-16,20); insert Into system_ordernumbers(ordernumber, bookid, customerid, customernam

34、e, customerlink, customeraddress, booknumber, orderdate, deliverdate, bookprice) values(004,5658,285287523,劉俊彥,13962025782,廣州市藝苑路東慶街 2 號(hào) ,2,2010-04-23,2010-04-24,58); insert Into system_ordernumbers(ordernumber, bookid, customerid, customername, customerlink, customeraddress, booknumber, orderdate,

35、deliverdate, bookprice) values(005,565800020,285287524,夏林,13976584389,上海市肇嘉路 366 號(hào) ,1,2010-05-04,2010-05-05,24); Into system_ordernumbers(ordernumber, bookid, customerid, customername, customerlink, customeraddress, booknumber, orderdate, deliverdate, bookprice) values(006,15154656,285287525,慕芝陽,151

36、20696986,上海市淮海中路 222 號(hào) ,1,2010-06-12,2010-06-13,38); 4.2.4.4.2.4. 將已有的管理員加入將已有的管理員加入 system_managerssystem_managers 表中表中 insert into system_managers( managerid,managerrole) values(1001,訂單處理管理員); insert into system_managers( managerid,managerrole) values(1002,庫存管理員); 4.2.54.2.5 將庫存中的書籍加入將庫存中的書籍加入 sys

37、tem_storesystem_store 表中表中 insert into system_store(bookid, bookprice,storenumber) values(00125415152,25,10); insert into system_store(bookid, bookprice,storenumber) values(00456456,26,12); insert into system_store(bookid, bookprice,storenumber) values(12215121,30,7); insert into system_store(bookid

38、, bookprice,storenumber) values(9787308020558,28,15); insert into system_store(bookid, bookprice,storenumber) values(45456141414,28,13); insert into system_store(bookid, bookprice,storenumber) values(5455515,20,5); insert into system_store(bookid, bookprice,storenumber) values(015115,22,10); insert

39、into system_store(bookid, bookprice,storenumber) values(1514514,35,11); insert into system_store(bookid, bookprice,storenumber) values(15154656,38,11); insert into system_store(bookid, bookprice,storenumber) values(5658,29,11); insert into system_store(bookid, bookprice,storenumber) values(565800020

40、,24,14); 5.5.結(jié)果數(shù)據(jù)處理結(jié)果數(shù)據(jù)處理 5.1.5.1. 單表查詢單表查詢 5.1.1.5.1.1. 表表 system_customerssystem_customers 中查詢中查詢 圖 0-1 表 system_customers 中內(nèi)容 5.1.2.5.1.2. 表表 system_bookssystem_books 中查詢中查詢 圖 0-2 表 system_books 中內(nèi)容 5.1.3.5.1.3. 表表 system_ordernumberssystem_ordernumbers 中查詢中查詢 圖 0-3 表 system_ordernumbers 中內(nèi)容 5.1.

41、4.5.1.4. 表表 system_managerssystem_managers 中查詢中查詢 圖 0-4 表 system_managers 中內(nèi)容 5.1.5.5.1.5. 表表 system_storesystem_store 中查詢中查詢 圖 0-5 表 system_stores 中內(nèi)容 5.1.6.5.1.6. 將已有的圖書加入將已有的圖書加入 system_bookssystem_books 表中查詢表中查詢 5.1.7.5.1.7. 將已有的訂單加入將已有的訂單加入 system_ordernumberssystem_ordernumbers 表中查詢表中查詢 6.6. 結(jié)

42、束語結(jié)束語 在完成此系統(tǒng)后,我發(fā)現(xiàn)理論和實(shí)踐之間還是存在一定的差距的,要把理論知識(shí)靈活 運(yùn)用于實(shí)踐才是最好的。通過這次試驗(yàn),使我進(jìn)一步的了解了如何去分析和處理問題,應(yīng) 該說數(shù)據(jù)庫的范疇已經(jīng)遠(yuǎn)遠(yuǎn)不止局限于該門課程,而是一個(gè)綜合的一個(gè)能夠解決問題的思 想集合。在實(shí)驗(yàn)過程中,從建立數(shù)據(jù)開始,對(duì)靈據(jù)庫設(shè)計(jì)理念及思想上有更高的認(rèn)識(shí),從 需求分析,到概念設(shè)計(jì)和邏輯設(shè)計(jì),E-R 圖的表示,數(shù)據(jù)字典的創(chuàng)建,懂得了不少有關(guān)數(shù) 據(jù)庫開發(fā)過程中的知識(shí),在實(shí)驗(yàn)中建表,及其關(guān)系模式,關(guān)系代數(shù)的建立及理解,將 SQL 語的查詢語句用得淋漓盡致,增強(qiáng)了自己在數(shù)據(jù)庫中應(yīng)用 SQL 語言的靈活性,其中包括, 插入、刪除、修改、查詢,牽涉表和表之間的聯(lián)系,主建與外主鍵的定義,約束項(xiàng)的設(shè)置, 使邏輯更嚴(yán)密。雖然這次由于時(shí)間倉促,不能達(dá)到完善系統(tǒng),但我也盡了自己的全力把它 做好,不管怎么說,對(duì)這次做的課程設(shè)計(jì)自己覺得還算滿意。 7.7. 參考文獻(xiàn)參考文獻(xiàn) 【1】龔沛曾,袁科萍,楊志強(qiáng).數(shù)據(jù)庫技術(shù)及應(yīng)用.北京:高等教育出版社,2008.3. 【2】劉瑞新,崔淼.Visual Basic 程序設(shè)計(jì)實(shí)踐教程.北京:機(jī)械工業(yè)出版社,2003.5. 【3】高守傳.精通 SQL結(jié)構(gòu)化查詢語言詳解.人民郵電出版社. 成績?cè)u(píng)定表 指 導(dǎo) 教 師 評(píng) 語 成 績 簽字: 年 月 日

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!