--写错了。不好意思: 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
34,838
社区成员
254,632
社区内容
加载中
试试用AI创作助手写篇文章吧