34,874
社区成员
发帖
与我相关
我的任务
分享
--写错了。不好意思:
select distinct a.* from 表一 a , 表二 b where a.id=b.tid
--或者
select distinct a.* from 表一 a left join 表二 b on a.id=b.tid where b.tid is not null
select a.* from 表一 a left join 表二 b on a.id=b.tid and b.tid is not null