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

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>
            欧美一区2区视频在线观看| 亚洲精品国产系列| 亚洲视频一区二区免费在线观看| 亚洲毛片在线免费观看| 亚洲精品中文字幕女同| 国产精品国产福利国产秒拍 | 亚洲三级视频在线观看| 欧美日韩视频一区二区| 久久久久欧美精品| 欧美日韩国产一级片| 久久免费国产| 欧美三级乱人伦电影| 毛片一区二区三区| 国产精品国产a级| 亚洲国产精品高清久久久| 国产伦理一区| 亚洲乱码国产乱码精品精| 国产在线精品二区| 中文网丁香综合网| 亚洲精品欧美极品| 久久国产精品亚洲77777| 亚洲一区日韩在线| 欧美极品一区二区三区| 久久一区二区视频| 国产精品久久久久一区二区三区共| 免费视频一区| 国产亚洲一区二区在线观看 | 在线播放中文字幕一区| 一区二区三区欧美日韩| 亚洲国产裸拍裸体视频在线观看乱了中文 | 欧美专区18| 亚洲专区一区二区三区| 欧美激情视频在线播放| 你懂的网址国产 欧美| 国产香蕉久久精品综合网| 亚洲一区二区免费在线| 亚洲丝袜av一区| 欧美人成在线视频| 亚洲国产免费| 亚洲人成人77777线观看| 久久精品五月| 久久久国产一区二区| 国产麻豆综合| 亚洲性人人天天夜夜摸| 亚洲丰满在线| 亚洲综合视频网| 亚洲一区二区三区四区五区黄| 欧美激情一区二区三区蜜桃视频 | 欧美精品一区二区在线观看| 欧美国产精品| 亚洲国产精品一区在线观看不卡| 久久久久**毛片大全| 久久一二三国产| 亚洲二区视频在线| 欧美成人资源| 亚洲精品中文字幕有码专区| 一区二区高清| 国产精品对白刺激久久久| 亚洲午夜精品福利| 久久精品欧美日韩精品| 国内精品美女av在线播放| 欧美高清在线| 亚洲黄色尤物视频| 欧美精品久久久久a| 日韩天堂在线观看| 亚洲在线视频一区| 国产人久久人人人人爽| 欧美综合二区| 亚洲二区在线视频| 一区二区三区高清不卡| 国产精品久久影院| 午夜亚洲视频| 欧美电影打屁股sp| 亚洲视频免费观看| 国产亚洲毛片在线| 欧美激情久久久| 亚洲综合电影| 欧美国产精品久久| 亚洲免费婷婷| 亚洲国产国产亚洲一二三| 欧美极品aⅴ影院| 午夜老司机精品| 91久久视频| 久久国产一区二区| 亚洲品质自拍| 国产精品久久久久高潮| 久久久夜夜夜| 一区二区三区四区五区视频| 久久久噜噜噜久久人人看| 亚洲日本va在线观看| 国产精品入口福利| 暖暖成人免费视频| 亚洲欧美精品在线观看| 亚洲电影av在线| 欧美在线首页| 一区二区三区日韩欧美| 激情av一区| 欧美在线免费播放| 欧美综合二区| 一区二区福利| 欧美激情视频一区二区三区在线播放| 一区二区三区国产精华| 好吊妞**欧美| 国产精品入口尤物| 欧美日韩精品欧美日韩精品| 久久久噜噜噜久噜久久 | 亚洲国产精品一区二区第四页av | 一本色道久久88综合亚洲精品ⅰ| 欧美在线一级视频| 亚洲网站在线播放| 亚洲免费观看视频| 亚洲激情精品| 在线观看精品| 狠狠色丁香婷婷综合影院| 国产精品国产福利国产秒拍| 欧美电影美腿模特1979在线看| 亚洲欧美在线播放| 在线亚洲美日韩| 亚洲精品日韩精品| 亚洲国产精品传媒在线观看| 免费日韩一区二区| 牛夜精品久久久久久久99黑人| 欧美一区三区三区高中清蜜桃| 99热精品在线| 亚洲理论电影网| 亚洲日本电影| 亚洲精选视频在线| 亚洲日韩欧美视频一区| 91久久久在线| 亚洲精品国产精品乱码不99按摩 | 久久精品99国产精品酒店日本| 亚洲校园激情| 日韩一区二区精品葵司在线| 亚洲精品1区2区| 亚洲国产欧美日韩精品| 在线精品国产欧美| 精品999久久久| 伊人久久亚洲美女图片| 亚洲成色最大综合在线| 在线激情影院一区| 亚洲激情成人在线| 亚洲六月丁香色婷婷综合久久| 91久久在线| 99热免费精品| 亚洲免费在线精品一区| 性伦欧美刺激片在线观看| 亚洲免费视频成人| 久久精品亚洲一区| 久久视频精品在线| 欧美成ee人免费视频| 欧美黑人多人双交| 亚洲精品视频一区| 一区二区三区四区国产| 毛片一区二区三区| 亚洲美女精品一区| 在线一区观看| 午夜精品久久久久久久男人的天堂| 亚洲一区二区三区在线看| 性18欧美另类| 另类图片综合电影| 欧美日韩精品一区二区三区四区| 欧美深夜影院| 国产亚洲欧美激情| 亚洲精品久久7777| 亚洲伊人第一页| 免费欧美视频| 一区二区三区蜜桃网| 欧美综合国产| 欧美精品在线观看| 国产乱子伦一区二区三区国色天香 | 亚洲特色特黄| 久久这里有精品15一区二区三区| 欧美国产视频在线观看| 日韩视频精品在线| 性色一区二区三区| 欧美久久综合| 国模私拍视频一区| 一本色道久久综合亚洲精品不卡| 欧美一区二区在线| 亚洲国产精品久久人人爱蜜臀| 亚洲午夜国产成人av电影男同| 欧美一站二站| 欧美日韩在线直播| 亚洲第一久久影院| 欧美一区二区三区的| 亚洲国产一区二区精品专区| 亚洲欧美区自拍先锋| 欧美bbbxxxxx| 国产有码在线一区二区视频| 亚洲最黄网站| 欧美成人精品h版在线观看| 亚洲无线一线二线三线区别av| 另类激情亚洲| 国产亚洲欧洲| 亚洲男人av电影| 亚洲国产欧美国产综合一区 | 香蕉久久a毛片| 亚洲日本电影在线| 另类综合日韩欧美亚洲| 国产欧美在线|