28,406
社区成员
发帖
与我相关
我的任务
分享SELECT * FROM KS_Article a
where Author in("&Username&")
and not exists (select 1 from KS_Article where Author=a.Author and id>a.id)
and not exists (select 1 from KS_U_spxx where Author=a.Author and id>a.id)
union all
SELECT * FROM KS_U_spxx b
where Author in("&Username&")
and not exists (select 1 from KS_Article where Author=b.Author and id>b.id)
and not exists (select 1 from KS_U_spxx where Author=b.Author and id>b.id)