首先连接帆软的内置数据库finedb,不会连的可以进帮助文档搜“finedb”,然后试试我这个语句:
select f.id,f.displayname,f2.id sj_id,f2.displayname sj_displayname
from fine_authority_object f left join fine_authority_object f2
on f.parentid=f2.id
and f2.displayname !='Dec-Entry_Management'
where f.expandtype not in (1)
and f.parentid not in(
select f2.id from fine_authority_object f2
where f2.displayname in('Dec-Homepage_management')
)
order by f.displayname;