数据库课程设计设计选题:论坛管理信息系统班级:信息与计算科学班设计人:邹业安学号:2014210758辅导教师:褚万军一、需求分析: : 1二、数据库设计: : : : 3三、关系图的建立: 4四、功能实现: : : 4五、数据操作 : : : : 9(1)创建视图: 9(2)视图的查询: 10(3)视图的更新: 10(4)视图的撤消 11六、个人总结和体会: 11一、需求分析::论坛管理信息系统需要完成功能主要有:(1)作者信息模块:用来管理作者信息,包括作者昵称、贴子编号、性别、年龄、职业、爱好等;(2)贴子信息模块:用来管理贴子信息,包括贴子编号、发贴日期、时间、等级等;(3)回复日期模块:用来管理回复信息,包括作者昵称、回复时间、贴子编号等。:(1)在作者信息模块部分,要求:;。(2)在贴子信息部分,要求:;,包括添加及删除的操作。(3)在回复日期部分,要求:;。二、数据库设计::::author表:anoChar(10)不允许为空anameChar(10)不允许为空agenderChar(10)upationChar(10)允许为空ahobbyChar(10)允许为空post表结构:anoChar(10)不允许为空pdateChar(10)允许为空ptimeChar(10)允许为空pgradeChar(10)允许为空reply表:anoChar(10)不允许为空rnameChar(10)允许为空rtimeChar(20)允许为空三、关系图的建立:四、功能实现::createdatabasexck;:(1)author表:createtableauthor(anochar(10),anamechar(10),agenderchar(10),aagesmallint,upationchar(10),ahobbychar(10)primarykey(ano,aname));(2)post表:createtablepost(anochar(10)primarykey,pdatechar(10),ptimechar(10),pgradechar(10));(3)reply表:createtablereply(anochar(10)primarykey,rnamechar(10),rtimechar(20),);五、:(1)向author表插入信息:insertintoauthorvalues('01','熊程珂','女',19,'学生','看书');insertintoauthorvalues('02','张武月','男',26,'医生','做实验');insertintoauthorvalues('03','李晶','女',34,'老师','游泳');insertintoauthorvalues('04','王亚彤','女',32,'HR','打球');insertintoauthorvalues('05','熊程珂','女',19,'学生','看书');(2)向post表插入信息:insertintopostvalues('01','2007年','4月8号','A');insertintopostvalues('02','2008年','4月14号','A');insertintopostvalues('03','2011年','5月18号','B');insertintopostvalues('04','2005年','11月28号','A');insertintopostvalues('05','2012年','10月2号','C');(3)向reply表插入信息:insertintoreplyvalues('01','赵硕','2007年5月21号');insertintoreplyvalues('02','张树新','2008年7月16号');insertintoreplyvalues('03','王明','2011年8月1号');insertintoreplyvalues('04','程珂','2005年12月11号');insertint
论坛管理信息系统 来自淘豆网m.daumloan.com转载请标明出处.