比如要给   用户A   具有对    表T   的    学号no   的    查询   权限。我写成 grant select(no) on T to A;提示错误:ORA-00969: 缺少 ON 关键字。应该怎么写?

解决方案 »

  1.   

    grant select on T to A; 
      

  2.   

    不能啊你有什么方法可以指定吗?SQL> conn scott/tiger
    Connected.
    SQL> grant select(deptno) on dept to test;
    grant select(deptno) on dept to test
                *
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SQL> grant select on dept(deptno) to test;
    grant select on dept(deptno) to test
                        *
    ERROR at line 1:
    ORA-00905: missing keyword
      

  3.   

    创建此列的视图,然后为用户授予对视图的SELECT权限.
      

  4.   

    只能在insert,update,references上授予列权限