我的博客文档 联系客服

发布时间 : 星期三 文章我的博客文档更新完毕开始阅读afcbe9c189eb172ded63b7e2

兰州交通大学计算机实训项目文档

}

private int articleId; private int commetnId; private int userId; private String comment;

private Date commentPubDate; }

类 7 CommentDo

public class CommentDao {

public ArrayList getAllComment(int articleId) { return list; }

public void pubComment(CommentVo cv) { } }

5 数据库设计

userinfo表 序号 1 2 3 列名 Userid LoginId loginpwd 类型 Integer varchar varchar 描述 用户的id 用户名 用户密码

userdetails表 序号 1 2 3 4 5 6 7

articles表

32 / 34

列名 userid truename gender age mail qq headerimg 类型 integer varchar integer integer varchar varchar varchar 描述 用户的ID 用户的真实名字 用户的等级 用户的年龄 用户的邮箱 用户的QQ 用户的头像 兰州交通大学计算机实训项目文档

序号 1 2 3 4 5 6

列名 articleId authorId Title contents pubdate clicks 类型 integer integer varchar text datetime integer 描述 文章的id 作者的id 文章的标题 文章的内容 文章发表的时间 文章的点击次数 comments表 序号 1 2 3 4 5

列名 commentid articleId userid comment commentpubdate 类型 integer integer integer text datetime 描述 评论的id 文章的id 用户的id 评论 评论的发表时间 33 / 34