打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
oracle sql%四种用法
oracle sql%四种用法

sql%NOTFOUND     --update,delete操作时没找到符合条件的记录。
sql%FOUND            --SELECT   columnname   INTO   ,update,delete找到符合条件的记录Top
sql%rowcount          --判定当前更新记录数
sql%isopen             --判定当前游标是否打开Top

%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.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Oracle数据库中的临时表用法
[精华] Oracle FAQ 整理
sql trace基础
occi tricks
Tuning SQL Statements
浅谈Oracle中Rownum的排序和比较
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服