多表查询输出不重复记录

示例: //t1,t2 为一对多,须要根据t2的条件查出t1的记录列表。 t1 {id,name,remark} t2 {id,t1_id,name,remark} select * from t1 where t1.id in( select t1_id from t2 where t2.id=t1.id and t2.name=<parameter> ) select
相关文章
相关标签/搜索