比如,A为新闻类型表,B为新闻表。
A表两个字段:id,type
B表:id,title,content,type_id,...
统计出每种新闻类型下的新闻数:
select count(*) from B right inner join A on A.id=B.type_id group by A.id
比如,A为新闻类型表,B为新闻表。 A表两个字段:id,type B表:id,title,content,type_id,... 统计出每种新闻类型下的新闻数: select count(*) from B right inner join A on A.id=B.type_id group by A.id 我用getrows获取结果,但枚举结果的时候,类型下还没有新闻的 类型结果却都是1,请问这是什么原因,该怎么解决?我直接用的rs.open sql,conn