人员账号所属权限模块

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

相关推荐
达达爱吃肉2 分钟前
openclaw 4.2 飞书出图的bug
java·前端·数据库
TDengine (老段)11 分钟前
TDengine IDMP 可视化 ——柱状图
大数据·数据库·物联网·时序数据库·iot·tdengine·涛思数据
Meepo_haha12 分钟前
Spring boot 3.3.1 官方文档 中文
java·数据库·spring boot
xcLeigh16 分钟前
KES数据库数据类型与SQL高级语法
大数据·数据库·sql·kes·高级语法·数据选型
入瘾9 小时前
etcd 显示连接失败
数据库·chrome·etcd
本体智能9 小时前
预制指标、宽表、SQL、本体ABC:真正决定长期成本的,是一次变更会波及多少层
数据库·sql·本体神经网络·uino数据智能引擎
长安11089 小时前
数据库基础知识----数据库大观
数据库·oracle
瀚高PG实验室10 小时前
使用hgdbdeveloper开发工具导出数据后在异机恢复时报错
数据库·瀚高数据库
百结21411 小时前
PostgreSQL 初体验
数据库·postgresql
ward RINL12 小时前
Redis 安装及配置教程(Windows)【安装】
数据库·windows·redis