人员账号所属权限模块

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 分钟前
CSS如何引入CSS暗黑模式配置_通过媒体特性实现主题自动化
jvm·数据库·python
2401_824697663 分钟前
如何用 cookie 的 HttpOnly 与 Secure 属性防范 XSS 攻击
jvm·数据库·python
布吉岛的石头5 分钟前
ClickHouse性能优化:OLAP数据库实战,让查询飞起来
数据库·clickhouse·性能优化
神明9317 分钟前
React 中父组件向子组件传递函数的正确调用方式
jvm·数据库·python
Irissgwe9 分钟前
redis之集群(Cluster)
数据库·redis·缓存·集群·redis集群·数据分片算法
wang3zc9 分钟前
TensorFlow如何进行张量维度重塑_使用tf.reshape或tf.expand_dims
jvm·数据库·python
2501_9012005315 分钟前
mysql如何检查数据库表是否存在损坏_使用CHECK TABLE命令修复
jvm·数据库·python
2301_7662834416 分钟前
如何设置密码复杂度策略以约束MongoDB用户的密码强度
jvm·数据库·python
duke86926721418 分钟前
Golang怎么安全关闭channel_Golang channel关闭教程【通俗】
jvm·数据库·python
Irene199118 分钟前
Oracle 查看表结构的方法(MySQL vs Oracle 查看表结构对比)
oracle