我有一张表,按“单位编号”分别给特定用户设置不同的数据访问权限(包括增删改查),是否还可以限制哪些字段可编辑?
是不是用视图可以啊?好像ORACLE可以更新视图大家给个方案?
是不是用视图可以啊?好像ORACLE可以更新视图大家给个方案?
解决方案 »
- oracle-12154 TNS:cound not resolve the connect identifier specified
- 数据库优化中,一个表字段个数的奇怪现象
- 为什么从tab中搜索出得表用select * from却说表或视图不存在?
- 用脚本删除数据库用户时遇到的问题
- 如何安装oracle客户端
- sys的用户密码丢了,怎么办?
- oracle8i的安装
- 什么时候需要用到 indextype,如何使用?
- 大家都进来看看,解决不了也可以提提意见,先谢了!
- 创建oracle function问题请教,谢谢了
- 给一个账户绑定了profile文件后怎么解除绑定的profile文件
- Oracle从一个用户连接到另一个用户的问题
--既然你将表的增删改查权限都授予了用户,
--那何不如将表的所有权限授予用户,这样用户就可以修改字段了
Connected as scottSQL> create table t(
2 x number(2),
3 y date,
4 z varchar2(10))
5 /
Table createdSQL> grant all on t to yeexun;
Grant succeededSQL> commit;
Commit complete
--------------------
Connected as yeexun
SQL> desc scott.t;
Name Type Nullable Default Comments
---- ------------ -------- ------- --------
X NUMBER(2) Y
Y DATE Y
Z VARCHAR2(10) Y SQL> insert into scott.t(x,y,z)
2 values(10,to_date('2011-01-01','yyyy-mm-dd'),'addfdfd');
1 row insertedSQL> insert into scott.t(x,y,z)
2 values(9,to_date('2010-01-01','yyyy-mm-dd'),'川菜好吃');
1 row insertedSQL> select * from scott.t;
X Y Z
--- ----------- ----------
10 2011-1-1 addfdfd
9 2010-1-1 川菜好吃SQL> alter table scott.t rename column x to a;
Table alteredSQL> desc scott.t;
Name Type Nullable Default Comments
---- ------------ -------- ------- --------
A NUMBER(2) Y
Y DATE Y
Z VARCHAR2(10) Y --为了安全性,你最好把对表的列的修改权限谨慎的授予特定的用户!
--上面的实例仅供参考