时间:2021-07-01 10:21:17 帮助过:8人阅读
select topic.to_id,topic.to_title from topic,relation where ( topic.to_id = relation.to_id ) and (t_id in (1,2,3));
select distinct( topic.to_id,topic.to_title) from topic,relation ,tag where ( topic.to_id = relation.to_id ) and (t_id in (1,2,3)) limit 0,10;
用group by