Home > Database > Mysql Tutorial > java +mysql如何样实现博客的评论功能

java +mysql如何样实现博客的评论功能

WBOY
Release: 2016-06-07 16:25:18
Original
2206 people have browsed it

java +mysql怎么样实现博客的评论功能 java mysql怎么样实现博客的评论功能 1、博客文章有个id,这是文章表2、评论的时候,把评论写到评论表里,同时把被评论的文章id也写进评论表里3、读取文章的同时再到评论表里,把这篇文章对于的评论读出来就行了

java +mysql怎么样实现博客的评论功能

java +mysql怎么样实现博客的评论功能


1、博客文章有个id,这是文章表
2、评论的时候,把评论写到评论表里,同时把被评论的文章id也写进评论表里
3、读取文章的同时再到评论表里,把这篇文章对于的评论读出来就行了
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template