GRANT权限在SQL中

时间:2015-08-11 15:08:34

标签: sql oracle privilege

快速:

    #slideshow{
    background-color: #333;
    position: relative;
    height: 200px;
}
.slideshow-overlay-wrapper {
    bottom: 0;
    display: table;
    left: 0;
    position: absolute;
    width: 100%;
    table-layout: fixed;
}
.slideshow-overlay {
  background-color: #fff;
  display: table-cell;
  height: 50px;
}
.slideshow-overlay-center {
    display: table-cell;
    height: 50px;
    width: 200px;
    position: relative;
}
.slideshow-overlay-center:after {
    content: '';
    left: 0;
    position: absolute;
    border-bottom: 0px solid transparent;
    border-top: 50px solid transparent;
    border-left: 100px solid #FFF;
    width: 0;
    height: 0;
}
.slideshow-overlay-center:before {
    content: '';
    right: 0;
    position: absolute;
    border-bottom: 0px solid transparent;
    border-top: 50px solid transparent;
    border-right: 100px solid #FFF;
    width: 0;
    height: 0;
}

我想授予AppAdmin对数据库所有表的SELECT权限

我正在使用Oracle SQL,为什么我的声明不起作用?

2 个答案:

答案 0 :(得分:1)

在引用系统特权时使用ANY关键字意味着用户可以对除SYS之外的任何用户拥有的任何对象执行特权。默认情况下,如果您被授予权限,则无法将权限分配给其他人。您无法向其他任何人授予或撤消该权限。

有时您希望向用户授予权限,并让他们能够将这些权限授予其他用户。在这种情况下,我们在grant命令中包含with admin关键字。使用此关键字时,它将允许被授予权限的用户将该权限授予其他用户。

以下是使用with admin option关键字的示例。

GRANT SELECT ANY TABLE TO User;

答案 1 :(得分:0)

GRANT SELECT ANY TABLE TO YOUR_USER;
相关问题