青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

Prayer

在一般中尋求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

Held and non-held cursors

Posted on 2010-05-12 23:21 Prayer 閱讀(219) 評論(0)  編輯 收藏 引用 所屬分類: DB2

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.apsg/db2z_heldnonheldcursor.htm

Held and non-held cursors

A held cursor does not close after a commit operation. A cursor that is not held closes after a commit operation. You specify whether you want a cursor to be held or not held by including or omitting the WITH HOLD clause when you declare the cursor.

After a commit operation, the position of a held cursor depends on its type:
  • A non-scrollable cursor that is held is positioned after the last retrieved row and before the next logical row. The next row can be returned from the result table with a FETCH NEXT statement.
  • A static scrollable cursor that is held is positioned on the last retrieved row. The last retrieved row can be returned from the result table with a FETCH CURRENT statement.
  • A dynamic scrollable cursor that is held is positioned after the last retrieved row and before the next logical row. The next row can be returned from the result table with a FETCH NEXT statement. DB2® returns SQLCODE +231 for a FETCH CURRENT statement.
A held cursor can close when:
  • You issue a CLOSE cursor, ROLLBACK, or CONNECT statement
  • You issue a CAF CLOSE function call or an RRSAF TERMINATE THREAD function call
  • The application program terminates.

If the program abnormally terminates, the cursor position is lost. To prepare for restart, your program must reposition the cursor.

The following restrictions apply to cursors that are declared WITH HOLD:
  • Do not use DECLARE CURSOR WITH HOLD with the new user signon from a DB2 attachment facility, because all open cursors are closed.
  • Do not declare a WITH HOLD cursor in a thread that might become inactive. If you do, its locks are held indefinitely.

IMS™

You cannot use DECLARE CURSOR...WITH HOLD in message processing programs (MPP) and message-driven batch message processing (BMP). Each message is a new user for DB2; whether or not you declare them using WITH HOLD, no cursors continue for new users. You can use WITH HOLD in non-message-driven BMP and DL/I batch programs.

CICS

In CICS® applications, you can use DECLARE CURSOR...WITH HOLD to indicate that a cursor should not close at a commit or sync point. However, SYNCPOINT ROLLBACK closes all cursors, and end-of-task (EOT) closes all cursors before DB2 reuses or terminates the thread. Because pseudo-conversational transactions usually have multiple EXEC CICS RETURN statements and thus span multiple EOTs, the scope of a held cursor is limited. Across EOTs, you must reopen and reposition a cursor declared WITH HOLD, as if you had not specified WITH HOLD.

You should always close cursors that you no longer need. If you let DB2 close a CICS attachment cursor, the cursor might not close until the CICS attachment facility reuses or terminates the thread.

The following cursor declaration causes the cursor to maintain its position in the DSN8910.EMP table after a commit point:

EXEC SQL
DECLARE EMPLUPDT CURSOR WITH HOLD FOR
SELECT EMPNO, LASTNAME, PHONENO, JOB, SALARY, WORKDEPT
FROM DSN8910.EMP
WHERE WORKDEPT < 'D11'
ORDER BY EMPNO
END-EXEC.
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美在线一区二区三区| 国产在线麻豆精品观看| 亚洲视频自拍偷拍| 一区二区三区视频在线播放| 99这里只有久久精品视频| 亚洲国产专区校园欧美| 亚洲国产精品va| 91久久在线观看| 99精品视频免费全部在线| 一区二区三区免费观看| 午夜精品一区二区三区电影天堂| 欧美在线免费视频| 欧美成人dvd在线视频| 欧美日韩国产精品 | 女同性一区二区三区人了人一| 久久久一区二区| 欧美乱妇高清无乱码| 国产精品免费在线| 伊人精品在线| 亚洲一区二区在线播放| 久久久蜜桃一区二区人| 亚洲精品小视频| 久久久久久久综合| 欧美性做爰猛烈叫床潮| 亚洲第一成人在线| 午夜久久美女| 亚洲茄子视频| 久久精品一区二区三区不卡| 欧美三级中文字幕在线观看| 黄色亚洲精品| 亚洲欧美日韩国产综合精品二区| 蜜桃av一区二区| 亚洲一区二区动漫| 欧美日本免费| 亚洲国产婷婷香蕉久久久久久99| 午夜精品久久久久久久久久久久| 亚洲福利精品| 久久精品一区二区三区中文字幕| 国产精品成人一区二区艾草| 亚洲国产欧美不卡在线观看| 久久久www成人免费毛片麻豆| 亚洲美女中出| 欧美伦理91i| 亚洲精品免费一二三区| 免播放器亚洲一区| 久久国产精品99精品国产| 国产精品hd| 亚洲一级黄色av| 91久久亚洲| 欧美精品日韩www.p站| 亚洲国产欧美一区| 免费一级欧美在线大片| 久久精品主播| 韩国一区二区三区美女美女秀| 亚洲女与黑人做爰| 一区二区三区四区五区精品| 欧美精品成人在线| 亚洲免费观看高清在线观看| 亚洲国产欧美一区| 欧美国产日本| 一区二区三区四区五区在线| 亚洲免费播放| 国产精品爱久久久久久久| 亚洲一级片在线看| 亚洲一区精品视频| 国产一级一区二区| 狼狼综合久久久久综合网| 欧美制服第一页| 黄色av一区| 欧美激情偷拍| 欧美日韩不卡在线| 欧美一级成年大片在线观看| 欧美亚洲一区二区在线| 国内精品一区二区| 欧美高清视频一二三区| 欧美精品导航| 欧美一区二区三区免费看| 欧美在线免费视频| 91久久久久| 亚洲无毛电影| 在线欧美亚洲| 日韩午夜免费| 国产一区二区三区四区hd| 欧美成人免费小视频| 欧美日本一区二区高清播放视频| 午夜精品成人在线视频| 亚洲精品国产精品乱码不99 | 亚洲国产精品成人va在线观看| 欧美精品首页| 欧美在线高清视频| 麻豆精品在线观看| 亚洲在线一区| 久久久精品国产免大香伊| 亚洲精品免费网站| 亚洲在线一区二区三区| 精品av久久久久电影| 亚洲精品一二区| 精品动漫av| 亚洲视频欧美在线| 亚洲高清不卡在线| 亚洲一区二区三区欧美| 91久久精品国产| 午夜视频在线观看一区二区| 亚洲国产一二三| 亚洲女与黑人做爰| 99精品国产一区二区青青牛奶| 亚洲欧美日韩电影| 99精品免费| 久久久蜜桃精品| 欧美一区二区高清| 欧美久久久久久蜜桃| 久久中文字幕一区| 国产精品日本一区二区| 亚洲国产欧美不卡在线观看| 狠狠色狠色综合曰曰| 亚洲视频中文字幕| 亚洲香蕉伊综合在人在线视看| 免费在线看成人av| 美女视频黄a大片欧美| 国产美女扒开尿口久久久| 亚洲美女少妇无套啪啪呻吟| 亚洲欧洲在线免费| 久久久久久婷| 久久久久一区二区三区| 国产精品免费区二区三区观看| 日韩视频免费观看| 亚洲伦理久久| 欧美暴力喷水在线| 欧美承认网站| 91久久国产综合久久蜜月精品 | 亚洲精品国产精品久久清纯直播| 狠狠干综合网| 亚洲欧美色一区| 欧美在线高清视频| 国产日韩欧美精品一区| 亚洲你懂的在线视频| 午夜久久tv| 国产午夜精品一区二区三区欧美 | 亚洲国产午夜| 亚洲美女免费视频| 欧美日韩亚洲一区三区| 中文一区在线| 欧美在线free| 国产色视频一区| 久久国产精品久久久久久| 久久久亚洲国产天美传媒修理工| 国产日韩在线看片| 久久精品国亚洲| 亚洲激情专区| 亚洲欧美中文字幕| 国产一区二区三区四区在线观看| 久久高清国产| 亚洲欧洲精品一区二区三区不卡 | 欧美日韩免费一区二区三区视频| 亚洲看片网站| 欧美一区二区大片| 在线不卡欧美| 欧美日韩大片| 午夜精品一区二区三区四区| 久久久久九九视频| 亚洲精品日韩激情在线电影| 欧美日韩一区二区在线| 亚洲欧美激情视频| 免费高清在线视频一区·| 亚洲精品在线观看免费| 国产精品私房写真福利视频 | 99国产精品99久久久久久| 亚洲一区精品视频| 国产一区二区剧情av在线| 你懂的一区二区| 亚洲少妇自拍| 欧美成人精品高清在线播放| 亚洲天堂网在线观看| 国语自产精品视频在线看一大j8 | 久热成人在线视频| 日韩视频在线观看国产| 国产午夜久久| 欧美精品一区二区三区在线看午夜 | 老司机亚洲精品| 亚洲美女淫视频| 久久一区欧美| 亚洲欧美精品在线| 亚洲激情国产精品| 国产情人综合久久777777| 欧美寡妇偷汉性猛交| 欧美中文日韩| 亚洲视频在线二区| 亚洲第一精品在线| 久久riav二区三区| 亚洲综合不卡| 亚洲日本成人在线观看| 国产日韩精品一区二区三区 | 国产精品成人在线观看| 免费中文日韩| 久久精品国产亚洲精品| 日韩图片一区| 亚洲欧洲日本在线| 欧美成人免费小视频| 麻豆成人精品| 久久人人爽人人爽爽久久|