




已閱讀5頁,還剩13頁未讀, 繼續免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
mysql圖書館管理系統的數據庫 數據庫library 操作員表operator書庫books學生信息表students information操作過程表process 操作員表operator 操作員表operator createtableoperator idchar 9 notnullprimarykey namevarchar 10 notnull insertintooperatorvalues 100001230 aa 100001231 bb 100001232 cc 100001233 dd 100001234 ee 100001235 ff 書庫books 書庫books createtablebooks titlevarchar 20 notnull date of publicationdate authorvarchar 15 notnull ISBNchar 13 notnullprimarykey number of copiesintnotnull positionvarchar 30 insertintobooksvalues 沒有任何借口 2008 11 01 杰伊 瑞芬博瑞 9787500683858 20 二樓 成功 激勵 鋼鐵是怎樣煉成的 1997 05 12 奧斯特洛夫斯基 9787530125403 25 二樓 成功 激勵 水滸傳 1998 11 15 施耐庵 9787530112454 10 一樓 文學類 小時代 2009 11 15 郭敬明 9782345612454 1 一樓 文學類 學生信息表students information 學生信息表students information createtablestudents information idchar 9 notnullprimarykey namevarchar 10 notnull sexchar 2 phone numberchar 11 departmentvarchar 10 insertintostudents informationvalues 100000001 aa MM財經 100000002 bb GG財經 100000003 cc MM財經 100000004 dd MM財經 100010001 ab GG計算機科學與運用 100010002 bc MM計算機科學與運用 100010003 cd GG計算機科學與運用 100010004 de MM計算機科學與運用 100020001 ef GG土木工程 9 可編輯 操作過程表process 操作過程表process createtableprocess titlevarchar 20 ISBNchar 13 bgnamevarchar 10 bg idchar 9 operator namevarchar 10 operator idchar 9 btimevarchar 20 gtimevarchar 20 is givebool insertintoprocessvalues 書名 isbn號 借 還書人 000000000 操作員姓名 000000000 借書時間 還書時間 1 借書存儲過程 delimiter createprocedurezj borrow inbook idchar 13 inb idchar 9 ino idchar 9 begindeclarebooktitlevarchar 20 declareborrownamevarchar 10 declareop namevarchar 10 declarebstimevarchar 20 declarenumint setnum 1 setbstime now setbooktitle selecttitlefrombookswhereISBN book id setborrowname selectnamefromstudents informationwhereid b id setop name selectnamefromoperatorwhereid o id 借書存儲過程 if selectnumber of copiesfrombookswhereISBN book id numandbook idin selectISBNfrombooks andb idin selectidfromstudents information ando idin selectidfromoperator and selectis givefromprocesswherebtime selectmax btime fromprocesswherebg id b id 1orb idnotin selectbg idfromprocess thenupdatebookssetnumber of copies number of copies 1whereISBN book id insertintoprocessvalues booktitle book id borrowname b id op name o id bstime null 0 endif end delimiter 檢測借書過程 callzj borrow 9787530125403 100000001 100001231 select fromprocess select frombooks callzj borrow 9787530125403 100000001 100001231 callzj borrow 9787530125404 100000001 100001231 callzj borrow 9787530125403 190000001 100001231 callzj borrow 9787530125403 100000001 190001231 callzj borrow 9782345612454 100010002 100001234 callzj borrow 9782345612454 100020001 100001232 創建還書過程 delimiter createprocedurezj give inb idchar 13 ing idchar 9 ino idchar 9 begindeclarestimevarchar 20 declaregstimevarchar 20 setgstime now setstime selectmax btime fromprocesswherebg id g id if selectis givefromprocesswhereISBN b idandbg id g idandoperator id o idandbtime stime 0thenupdateprocesssetgtime gstimewhereISBN b idandbg id g idandoperator id o idandbtime stime updateprocesssetis give 1whereISBN b idandbg id g idandoperator id o idandbtime stime updatebookssetnumber of copies number of copies 1whereISBN b id endif end delimiter 檢測還書過程 callzj give 9787530125403 100000001 100001231 select fromprocess select frombooks callzj give 9787530125403 100000001 100001231 callzj give 978753012
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 生態環境監測技術規范與標準考核試卷
- 電腦刺繡技術考核試卷
- 空調器運行數據挖掘與分析考核試卷
- 糕點烘焙的環保生產理念考核試卷
- 電機在電力質量改善的應用考核試卷
- 生物質能源在農村能源中的應用考核試卷
- 江蘇省宿遷市2025年初三5月第二次聯考化學試題含解析
- 上海師范大學天華學院《交替傳譯1》2023-2024學年第一學期期末試卷
- 遂寧能源職業學院《外國語言文學導論(1)》2023-2024學年第一學期期末試卷
- 揚州市職業大學《現代計算方法與工具》2023-2024學年第二學期期末試卷
- 2025年陜西省漢中市寧強縣中考一模道德與法治試題(含答案)
- 2024年阜陽太和縣第二人民醫院招聘筆試真題
- 工地分紅合同協議
- 變配電工多選試題及答案
- 零售業智能轉型:DeepSeek驅動的消費行為分析與推選系統
- 招商引資知識培訓課件
- 癌癥治療協議書模板
- 2025年平頂山文化藝術職業學院高職單招職業技能測試近5年常考版參考題庫含答案解析
- 弘揚航天精神中國航天日主題宣教課件
- 上海市寶山區上海交大附中2024-2025學年高考生物試題模擬試卷(8)生物試題含解析
- 私募基金財務管理制度版本
評論
0/150
提交評論