Oracle中创建视图

m540920181 2011-09-29 10:15:20
在Oracle中创建视图,一般的都可以
但是,如果没有表时,原则上不是也可以创建视图吗?
为什么,创建不成呢?
速求结果.......
...全文
174 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
inthirties 2011-10-10
  • 打赏
  • 举报
回复
force view,强制建立,即使有错误的创建。
benson_xi 2011-10-10
  • 打赏
  • 举报
回复
视图是一个虚拟表,其内容由查询定义。同真实的表一样,视图包含一系列带有名称的列和行数据。但是,视图并不在数据库中以存储的数据值集形式存在。行和列数据来自由定义视图的查询所引用的表,并且在引用视图时动态生成。
ilikeyml 2011-10-10
  • 打赏
  • 举报
回复
grant create view to scott
ilikeyml 2011-10-10
  • 打赏
  • 举报
回复
也有可能是权限问题
grant create view to scott
sinanxyj 2011-10-10
  • 打赏
  • 举报
回复
视图可以说是表的一个映射吧?你连表都没有,那么视图的数据哪里来?
huangdh12 2011-10-10
  • 打赏
  • 举报
回复
贴出出错的语句啊。。
create view tt as select sysdate dat from dual 这样也是可以的 ,不过貌似 dual也是临时表
秋雨飘落 2011-10-08
  • 打赏
  • 举报
回复
FORCE
Rotel-刘志东 2011-10-08
  • 打赏
  • 举报
回复
没有表怎么建立视图呢?建议搞清楚视图的概念。
完美灬缺陷 2011-10-08
  • 打赏
  • 举报
回复
说详细点吧.
linlusheng 2011-10-01
  • 打赏
  • 举报
回复
创建视图总得有数据源啊,鸡跟蛋的关系
jimmylin040 2011-09-30
  • 打赏
  • 举报
回复
视图可以说是表的一个映射吧?你连表都没有,那么视图的数据哪里来?
fzqrf 2011-09-30
  • 打赏
  • 举报
回复
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.

Aika_liu 2011-09-30
  • 打赏
  • 举报
回复
再说详细点吧。
Dave 2011-09-30
  • 打赏
  • 举报
回复

楼主可以先弄清楚视图的定义。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧