<br /><br />select * from 评论表 where rid = 你查看的帖子id;<br />//不明白哪里需要用到join?<br /><br />
Copy after login
------解决思路---------------------- 不需要join啊。 select * from table where rid=帖子id; ------解决思路---------------------- 按照ID来掉数据就可以了不涉及到其他的除非你需要将用户信息也调用出来,那有可能,否则只是读取帖子回复的话没有必要做join的。
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