像segmentfault这样的,一个问题与多个标签是在同一个数据表吗?

WBOY
Release: 2016-06-06 20:35:12
Original
1004 people have browsed it

一个问题有多个标签,标签和问题在同一个数据表,还是在一个专门的question_id与tag_id的对照表呢?

回复内容:

一个问题有多个标签,标签和问题在同一个数据表,还是在一个专门的question_id与tag_id的对照表呢?

参考 Typecho 的表设计:http://docs.typecho.org/database 问题和标签分两张内容表然后一张关系表对应关系。

我是小白,如果让我做,我会将文章做一张表,标签做一样表,另做一张关系表,来用文章和标签的id做关联

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!