2020年12月11日
摘要: mysql一条sql完成统计帖子下面有多少条回复 SELECT a.*,(select count(*) from theme as b where b.parent_id=a.id) as tiezi_count FROM `theme` as a WHERE a.id>0 在需要取的字段中,写m 阅读全文
posted @ 2020-12-11 13:55 鱼塘总裁 阅读(188) 评论(0) 推荐(0)