人员账号所属权限模块

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

相关推荐
知识分享小能手15 分钟前
Redis入门学习教程,从入门到精通,Redis 概述:知识点详解(1)
数据库·redis·学习
xixihaha13242 小时前
将Python Web应用部署到服务器(Docker + Nginx)
jvm·数据库·python
夕除2 小时前
Mysql--07
数据库·mysql
数据最前线2 小时前
5个瞬间,盘点国产数据库的2025年
数据库
jiankeljx2 小时前
Redis-配置文件
数据库·redis·oracle
xixihaha13242 小时前
Python游戏中的碰撞检测实现
jvm·数据库·python
Schengshuo2 小时前
SQL 中 COUNT 的用法详解
数据库·sql
顶点多余3 小时前
Mysql--后端与前端关系
数据库·mysql
mygljx3 小时前
【MySQL 的 ONLY_FULL_GROUP_BY 模式】
android·数据库·mysql
sunwenjian8863 小时前
Springboot项目本地连接并操作MySQL数据库
数据库·spring boot·mysql