SQL%**有哪样一些用法.

djwdjw 2003-11-05 09:23:22
SQL%**有哪些具体的用法,请大家给我介绍一下。
...全文
100 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
snowy_howe 2003-11-06
  • 打赏
  • 举报
回复
查了817的手册,只有这四个,如果还有可能是9i的新特性?
SQL
This is the name of the implicit SQL cursor.

%FOUND
This attribute yields TRUE if an INSERT, UPDATE, or DELETE statement affected one or more rows or a SELECT INTO statement returned one or more rows. Otherwise, it yields FALSE.

%ISOPEN
This attribute always yields FALSE because Oracle closes the SQL cursor automatically after executing its associated SQL statement.

%NOTFOUND
This attribute is the logical opposite of %FOUND. It yields TRUE if an INSERT, UPDATE, or DELETE statement affected no rows, or a SELECT INTO statement returned no rows. Otherwise, it yields FALSE.

%ROWCOUNT
This attribute yields the number of rows affected by an INSERT, UPDATE, or DELETE statement, or returned by a SELECT INTO statement.

djwdjw 2003-11-06
  • 打赏
  • 举报
回复
我想应该还有,大家在想想。
djwdjw 2003-11-05
  • 打赏
  • 举报
回复
谢谢楼上的兄弟,还有吗?
csqno1 2003-11-05
  • 打赏
  • 举报
回复
sql%NOTFOUND update,delete操作時沒找到符合條件的記錄。
sql%FOUND SELECT columnname INTO ﹐update,delete找到符合條件的記錄
beckhambobo 2003-11-05
  • 打赏
  • 举报
回复
sql%rowcount --判定当前更新记录数
sql%isopen --判定当前游标是否打开
djwdjw 2003-11-05
  • 打赏
  • 举报
回复
还有吗?

17,377

社区成员

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

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