ORACLE中的视图与游标有何区别?

[复制链接]
查看11 | 回复4 | 2015-3-4 14:43:43 | 显示全部楼层 |阅读模式
视图与游标除了都选择记录有点类似外,其余有何区别呀?
回复

使用道具 举报

千问 | 2015-3-4 14:43:43 | 显示全部楼层
view is an object of Oracle
and cursor just in Pl/SQL or Procedure/package and so on
回复

使用道具 举报

千问 | 2015-3-4 14:43:43 | 显示全部楼层
view 和 cursor是完全两个不同的东西。
楼主是不是没有说清楚啊。
A view is a tailored presentation of the data contained in one or more tables or other views. A view takes the output of a query and treats it as a table. Therefore, a view can be thought of as a stored query or a virtual table. You can use views in most places where a table can be used.
A cursor is a handle or name for a private SQL area--an area in memory in which a parsed statement and other information for processing the statement are kept.
回复

使用道具 举报

千问 | 2015-3-4 14:43:43 | 显示全部楼层
使用上有何区别吗
回复

使用道具 举报

千问 | 2015-3-4 14:43:43 | 显示全部楼层
看书后再问!!
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行