select a.* ,b.cc from dede_archives a left join (select count(*) cc , c.aid from dede_feedback c where c.aid=301) b on a.id=b.aid where a.id=301select a.*, (select count(*) from dede_feedback b where b.aid=a.id) cc from dede_archives a where a.id= 301dede_archives 为文章表
dede_feedback 为文章对应的评论表想统计某个文章下面,评论的数量,同时显示该文章基本信息
dede_feedback 为文章对应的评论表想统计某个文章下面,评论的数量,同时显示该文章基本信息
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货