怎么用GRANT来赋予只能查看指定列的权限?

[复制链接]
查看11 | 回复6 | 2005-11-21 12:32:10 | 显示全部楼层 |阅读模式
怎么用GRANT来赋予只能查看指定列的权限?
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
The following statement grants INSERT privilege on the acct_no column of the accounts table to scott:
GRANT INSERT (acct_no) ON accounts TO scott;

In another example, object privilege for the ename and job columns of the emp table are granter to the users jfee and tsmith:
GRANT INSERT(ename, job) ON emp TO jfee, tsmith;
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
You can grant INSERT, UPDATE, or REFERENCES privileges on individual columns in a table.
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
select 是不行的
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
用视图把
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
select 不行,不过你可以自己创建视图,然后将视图的查询权限给用户
回复

使用道具 举报

千问 | 2005-11-21 12:32:10 | 显示全部楼层
可以用View来做到,用户无表的相关授权,但是有View的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行