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

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>
            欧美日韩一区二区三区| 欧美日韩国产在线| 依依成人综合视频| 另类av一区二区| 久久综合影音| 亚洲人成艺术| 日韩一区二区精品葵司在线| 久久琪琪电影院| 亚洲理论在线观看| 99国内精品| 国产欧美一区二区三区国产幕精品 | 亚洲精品久久久久久下一站| 欧美成人免费小视频| 一本色道久久综合一区| 亚洲综合导航| 亚洲经典三级| 亚洲在线黄色| 亚洲国产乱码最新视频| 日韩午夜电影av| 国产亚洲亚洲| 99精品视频免费观看| 国产精品一二三四| 亚洲第一区色| 国产无一区二区| 亚洲国产高清视频| 国产日产欧产精品推荐色 | 亚洲一区二区三区四区五区黄| 亚洲综合日韩在线| 99视频精品在线| 久久精品91久久香蕉加勒比| 一区二区三区四区五区在线| 久久精品国产99国产精品| 亚洲第一区在线观看| 亚洲午夜极品| 亚洲网站视频| 欧美成人一区二区三区在线观看| 性欧美8khd高清极品| 欧美激情综合网| 久久亚洲综合网| 国产精品午夜国产小视频| 亚洲欧洲视频在线| 亚洲第一级黄色片| 午夜亚洲福利| 欧美一区二区高清在线观看| 欧美另类专区| 久久精品一区中文字幕| 国产精品乱码| 亚洲少妇一区| 亚洲午夜三级在线| 欧美日韩国产色综合一二三四| 欧美成人午夜77777| 国产一区二区三区在线观看视频 | 欧美一级大片在线免费观看| 欧美色综合网| 日韩视频在线观看国产| 91久久一区二区| 欧美成人免费观看| 亚洲福利精品| 亚洲精品四区| 欧美日韩国产精品一区| 亚洲精品综合久久中文字幕| 亚洲精品影院| 欧美日韩精品一本二本三本| 亚洲欧洲日韩综合二区| 99国产精品自拍| 欧美精品一区二区在线观看| 亚洲国产老妈| 日韩一区二区高清| 欧美日本韩国一区| 一本到12不卡视频在线dvd| 亚洲伊人伊色伊影伊综合网| 国产精品入口尤物| 久久国产综合精品| 亚洲第一精品在线| 亚洲天堂激情| 国产欧美日韩视频在线观看| 久久精品国产精品| 欧美国产高清| 国产精品99久久久久久久vr| 国产精品va在线| 欧美在线播放高清精品| 欧美xx69| 一区二区三区www| 国产精品午夜久久| 久久久蜜桃一区二区人| 亚洲电影在线播放| 亚洲男人av电影| 国内精品国产成人| 欧美肥婆bbw| 亚洲欧美日韩国产一区| 免费日韩一区二区| 亚洲少妇诱惑| 国内久久婷婷综合| 欧美成人xxx| 亚洲欧美日韩一区在线观看| 欧美大片在线看| 欧美在线播放| 亚洲精品日韩综合观看成人91| 国产精品久久久久久影视 | 欧美成人免费小视频| 亚洲午夜精品网| 欧美大片免费看| 亚洲一区二区在线观看视频| 国产精品捆绑调教| 欧美www视频| 亚洲永久免费观看| 欧美激情小视频| 欧美一区二粉嫩精品国产一线天| 在线免费观看一区二区三区| 欧美视频精品一区| 免费看亚洲片| 欧美一区不卡| 日韩亚洲欧美成人| 欧美成人精品一区二区| 亚洲欧美综合精品久久成人| 亚洲精一区二区三区| 国产一区二区在线观看免费| 欧美激情一区二区三区全黄| 久久精品国产99| 国产精品99久久久久久白浆小说| 亚洲成人在线网站| 久久蜜桃资源一区二区老牛| 制服丝袜亚洲播放| 亚洲黄色片网站| 国产一区二区三区免费在线观看| 欧美日韩免费网站| 噜噜噜91成人网| 久久精品国产77777蜜臀| 亚洲自拍16p| 亚洲午夜三级在线| 日韩视频在线观看国产| 亚洲国产欧美一区| 欧美成人一区二区三区片免费| 久久精品国产成人| 久久国产精品99久久久久久老狼| 中文一区在线| 亚洲午夜高清视频| 一区二区三区国产| 亚洲美女在线一区| 亚洲区第一页| 亚洲精品视频免费观看| 亚洲欧洲日韩女同| 亚洲欧洲一区| 亚洲三级免费电影| 在线观看欧美黄色| 在线观看三级视频欧美| 在线成人www免费观看视频| 国产一区二区三区在线观看视频 | 久久婷婷久久| 免费不卡在线观看av| 欧美+亚洲+精品+三区| 欧美国产亚洲精品久久久8v| 欧美成人一区二免费视频软件| 麻豆91精品| 亚洲成色777777女色窝| 亚洲日本激情| 中文欧美字幕免费| 亚洲欧洲av一区二区| 久久精品国产免费| 女女同性精品视频| 欧美精品在线看| 国产精品v欧美精品∨日韩| 国产精品欧美精品| 在线观看91精品国产入口| 亚洲一区二区三区四区五区午夜| 亚洲精品一区二区三区婷婷月| 欧美精品一区二区在线播放| 久久另类ts人妖一区二区| 久久这里只有| 91久久精品国产| 亚洲一二三区精品| 久久久另类综合| 欧美精品综合| 国产视频在线一区二区| 亚洲国产欧美不卡在线观看| 亚洲天堂久久| 欧美sm重口味系列视频在线观看| 亚洲国产高清一区| 午夜在线观看免费一区| 久久野战av| 国产精品一区视频| 91久久精品一区| 欧美专区亚洲专区| 亚洲精品精选| 久久精品国产清自在天天线 | 在线视频免费在线观看一区二区| 亚洲男人的天堂在线| 中国成人在线视频| 99综合电影在线视频| 欧美aa国产视频| 亚洲精品一区中文| 欧美一区二视频| 欧美视频四区| 亚洲福利在线看| 久久黄色网页| 亚洲视频在线免费观看| 另类天堂av| 激情久久久久久久| 欧美一区二区高清在线观看| 99视频精品在线|