qq_31697187
2018-12-11 09:34oracle 如何实现一个table,每个用户select * from 表名;查询的结果不同,注意没有where 条件
5oracle 如何实现一个table,每个用户进行查询看到的结果不同;只有管理员可以看到所有的内容
比如说:system用户(或sys)创建了一个表 test;
hr,scott,oe 等非dba权限的用户分别进行多次insert操作
scott用户执行 select * from 该表test;(注意没有where条件)只能看见自己dml后的结果,不能看到hr用户执行DML后的数据,只能update ,delete 自己的数据,
hr用户执行 select * from 该表test;(注意也没有where条件)也只能看见自己dml后的结果,不能看见scott用户的操作,只能update ,delete 自己的数据,
sys或system用户 select * from test; 能看见所有用户DML后的操作,
除sys或system用户外,所有的用户都不能drop table test ;只有sys或system才能drop table test
请问 如何实现上述问题,该用 oracle的什么技术实现??
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- 编写一个可以使用2个数据库的应用程序? [关闭]
- oracle
- mysql
- 1个回答
- 如何将这个复杂的查询转换为活动记录CODEIGNITER PHP?
- codeigniter
- oracle
- activerecord
- php
- 1个回答
- Oracle 查询的时候 我需要造出数据来 比如select *from table_name where code in(01,02,03) 然后我要返回的数据是01,1 (换行)01,2(换行) 02,1 .........
- sql
- oracle
- mysql
- 6个回答
- oracle 通过月份表来查询季度的数据
- oracle
- 1个回答
- oracle 多字段重复记录查询
- 数据库
- oracle
- 0个回答
换一换