欢迎来到冰豆网! | 帮助中心 分享价值,成长自我!
冰豆网
全部分类
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • 党团工作>
  • ImageVerifierCode 换一换
    首页 冰豆网 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    图书管理系统大数据库设计MYSQL实现Word下载.docx

    • 资源ID:14844403       资源大小:513.38KB        全文页数:24页
    • 资源格式: DOCX        下载积分:12金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要12金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    图书管理系统大数据库设计MYSQL实现Word下载.docx

    1、二、系统功能设计 画出系统功能模块图并用文字对各功能模块进行详细介绍。系统功能模块图:三、数据库设计方案图表 1、系统E-R模型总体E-R图:精细化的局部E-R图:学生借阅-归还E-R图:管理员E-R图: 2、设计表 给出设计的表名、结构以及表上设计的完整性约束。student:列名数据类型是否为空/性质说明stu_idintnot null /PK标明学生唯一学号stu_namevarcharnot null学生stu_sex学生性别stu_age学生年龄stu_pro学生专业stu_grade学生年级stu_integritynot null/default=1学生诚信级book:book

    2、_idnot null / PK唯一书籍序号book_name书籍名称book_author书籍作者book_pub书籍book_numint not null 书籍是否在架上book_sort书籍分类book_recorddatatimenull书籍登记日期book_sort:sort_id类型编号sort_name类型名称borrow:存储学生的借书信息student_id学生编号varchar 书籍编号borrow_date借书时间expect_return_datedatetime预期归还时间return_table:存储学生的归还信息return_date实际还书时间ticket:存

    3、储学生的罚单信息over_date超期天数ticket_feefloat处罚金额manager:manager_id管理员编号manager_name管理员manager_age管理员年龄manager_phone 3、设计索引给出在各表上建立的索引以及使用的语句。1.为stu_id创建索引,升序排序sql:create index index_id on student(stu_id asc);2.为stu_name创建索引,并且降序排序alter table student add index index_name(stu_name, desc);插入索引操作和结果如下所示:mysql c

    4、reate index index_id on student(stu_id asc);Query OK, 0 rows affectedRecords: 0 Duplicates: 0 Warnings: 0 alter table student add index index_name(stu_name desc);1.为book_id创建索引,升序排列create index index_bid on book(book_id);2.为book_record创建索引,以便方便查询图书的登记日期信息,升序:create index index_brecord on book(book_r

    5、ecord);插入索引的操作和结果如下所示: create index index_bid on book(book_id); create index index_brecord on book(book_record);1.为stu_id和book_id创建多列索引:create index index_sid_bid on borrow(stu_id asc, book_id asc); create index index_sid_bid on borrow(stu_id asc, book_id asc);create index index_sid_bid on return_ta

    6、ble(stu_id asc, book_id asc); create index index_sid_bid_r on return_table(stu_id asc, book_id asc);1. 为stu_id和book_id创建多列索引:create index index_sid_bid on ticket(stu_id asc, book_id asc); create index index_sid_bid on ticket(stu_id asc, book_id asc);1.为manager_id创建索引:create index index_mid on manage

    7、r(manager_id); create index index_mid on manager(manager_id); 4、设计视图 给出在各表上建立的视图以及使用的语句。1.在表student上创建计算机专业(cs)学生的视图stu_cs: create view stu_cs as select * from student where pro = cs;操作和结果: where stu_pro = cs;2. 在表student, borrow和book上创建借书者的全面信息视图stu_borrow: create view stu_borrow as select student.

    8、stu_id, book.book_id, student.stu_name, book.book_name, borrow_date,adddate(borrow_date,30) expect_return_date from student, book, borrow where student.stu_id = borrow.stu_id and book.book_id = borrow.book_id;3.创建类别1的所有图书的视图cs_book: create view cs_book as from book where book.book_sort in (select book_sort.sort.name from book_sort


    注意事项

    本文(图书管理系统大数据库设计MYSQL实现Word下载.docx)为本站会员主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2022 冰点文档网站版权所有

    经营许可证编号:鄂ICP备2022015515号-1

    收起
    展开