加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何oracle 某一用户授予查询另一个用户某张表的权限,以及更新

发布时间:2020-12-12 13:20:17 所属栏目:百科 来源:网络整理
导读:create user dwtest identified by ST/G00100000161; grant connect to dwtest; grant select on stpt.dw_metro_production ?to dwtest; ? Ex: select?*?from?stpt.dw_metro_production?t ? 查看该表 表结构 select * from user_tab_columns where Table_Nam
create user dwtest identified by ST/G00100000161; grant connect to dwtest; grant select on stpt.dw_metro_production ?to dwtest; ? Ex: select?*?from?stpt.dw_metro_production?t ? 查看该表 表结构 select * from user_tab_columns where Table_Name=‘用户表‘;?

select * from all_tab_columns where Table_Name=‘用户表‘;?
select * from dba_tab_columns where Table_Name=‘用户表‘;?

? sqlplus userA
grant select on userA.the_table to userB;
grant update (the_column) on the_table to userB; ?

1。查看表结构:desc表名

2。查看当前用户的表:

select table_name from user_tables;

3.查看所有用户的表名:

select table_name from all_tables;

4.查看所有表名(其中包括系统表)

select table_name from dba_tables;

5.查看所有的表:?
select * from tab/dba_tables/dba_objects/cat;

?

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读