人员账号所属权限模块

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 部门编号,人员编号

相关推荐
ShineWinsu1 分钟前
MySQL安全加固十大硬核操作:硬核防护指南
数据库·mysql·安全
骑龙赶鸭5 分钟前
mysql binlog中QUERY_EVENT的status_var结构
数据库·mysql
Skilce6 小时前
ZrLog 高可用部署
运维·服务器·数据库·阿里云·maven
indexsunny8 小时前
互联网大厂Java求职面试实战:微服务与Spring生态全攻略
java·数据库·spring boot·安全·微服务·面试·消息队列
沪漂阿龙8 小时前
别再让数据库“吃”脏数据了!一文讲透MySQL约束,从入门到精通
数据库·mysql
2401_8735449210 小时前
使用Python进行PDF文件的处理与操作
jvm·数据库·python
虾..10 小时前
多路复用 --- select系统调用
服务器·数据库·sql
杨云龙UP11 小时前
mysqldump逻辑备份文件恢复总结:全库恢复、单库恢复,一篇讲明白
linux·运维·服务器·数据库·mysql·adb
ybwycx11 小时前
mysql重置root密码(适用于5.7和8.0)
数据库·mysql·adb
色空大师12 小时前
【网站搭建实操(一)环境部署】
java·linux·数据库·mysql·网站搭建