在Oracle中创建视图,一般的都可以
但是,如果没有表时,原则上不是也可以创建视图吗?
为什么,创建不成呢?
速求结果.......

解决方案 »

  1.   

    create or replace force view ...FORCE Specify FORCE if you want to create the view regardless of whether the base tables of the view or the referenced object types exist or the owner of the schema containing the view has privileges on them. These conditions must be true before any SELECT, INSERT, UPDATE, or DELETE statements can be issued against the view.
      

  2.   

    也有可能是权限问题
    grant create view to scott
      

  3.   

    grant create view to scott
      

  4.   

    force view,强制建立,即使有错误的创建。
      

  5.   

    贴出出错的语句啊。。
    create view tt as select sysdate dat from dual 这样也是可以的 ,不过貌似 dual也是临时表