人员账号所属权限模块

select distinct

a.编码 as 部门编号,

a.名称 部门,

B.编号 as 人员编号,

b.姓名,

d.用户名,

substr(t.角色, 4, 20) as 角色,t.标题, t.说明,t.功能

from 部门表 a,

人员表 b,

部门人员 c,

上机人员表 d,

dba_role_privs e,

dba_roles f,

(select g.角色, h.序号, h.标题, h.说明, h.系统,G.功能

from (select distinct 系统, 序号, 角色,功能 from zltools.zlrolegrant) g,

zltools.zlprograms h

where g.序号 = h.序号

and h.系统 is not null) t

where e.granted_role = f.role

and f.role like '%ZL_%'

and a.id = c.部门id

and b.id = c.人员id

and b.id = d.人员id

and e.grantee = d.用户名

and f.role = t.角色

and C.缺省=1

And C.部门ID /*B0*/is not null/*E0*/

order by 部门编号,人员编号

相关推荐
道清茗24 分钟前
【MySQL知识点问答题】高级复制技术
数据库·mysql
IT邦德30 分钟前
Oracle备份恢复概览
数据库·oracle
User_芊芊君子37 分钟前
别再乱用 ArrayList 了!这 4 个隐藏坑,90% 的 Java 开发者都踩过
android·java·数据库
xcLeigh38 分钟前
IoTDB Java 原生 API 实战:SessionPool 从入门到精通
java·开发语言·数据库·api·iotdb·sessionpool
必胜刻41 分钟前
Redis分布式锁讲解
数据库·redis·分布式
gjc5921 小时前
零基础OceanBase数据库入门(6):连接OB集群
数据库·oceanbase
2601_954023661 小时前
Review and Installation Guide: Meminz - Download Software Landing Page Theme
数据库·seo·wordpress·gpl
slarymusic1 小时前
redis的下载和安装详解
数据库·redis·缓存
sR916Mecz2 小时前
Netty 线程模型
java·数据库·oracle
kjmkq2 小时前
2026移动应用跨平台开发框架从技术到业务的创新
数据库·代码