forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
40 lines
3.5 KiB
HTML
40 lines
3.5 KiB
HTML
<a name="EN-US_TOPIC_0000001188482094"></a><a name="EN-US_TOPIC_0000001188482094"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body1536647564178"><p id="EN-US_TOPIC_0000001188482094__a5169b8a73b7f4285a8604ca818c22f54">To process SQL statements, the stored procedure process assigns a memory segment to store context association. Cursors are handles or pointers to context areas. With cursors, stored procedures can control alterations in context areas.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001188482094__n4471cf68d3104e96b2ea453c1a3d246c"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001188482094__af5fa5558f9044d92bb33d54c063b9ba6">If JDBC is used to call a stored procedure whose returned value is a cursor, the returned cursor is not available.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188482094__a08a0b27afd2241378febf26675a215ef">Cursors are classified into explicit cursors and implicit cursors. <a href="#EN-US_TOPIC_0000001188482094__tc43c8c4ed32a432c864256c4fca6147a">Table 1</a> shows the usage conditions of explicit and implicit cursors for different SQL statements.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188482094__tc43c8c4ed32a432c864256c4fca6147a"></a><a name="tc43c8c4ed32a432c864256c4fca6147a"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188482094__tc43c8c4ed32a432c864256c4fca6147a" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Cursor usage conditions</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188482094__r191291b75778461a8b53a84f350b18cd"><th align="left" class="cellrowborder" valign="top" width="49.81%" id="mcps1.3.4.2.3.1.1"><p id="EN-US_TOPIC_0000001188482094__a2d68213d091f4b5eb50763ac11250faf">SQL Statement</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.19%" id="mcps1.3.4.2.3.1.2"><p id="EN-US_TOPIC_0000001188482094__a8c48fc13723544d79c715005f8584858">Cursor</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188482094__r5e877f193b4d4e57bd355b60f36821e5"><td class="cellrowborder" valign="top" width="49.81%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001188482094__a6ff7a493f6a7401eaaddf6e0b677e18f">Non-query statements</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.19%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001188482094__aef581bb58bd844a4b9998672037b04fc">Implicit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482094__r0cc1e38a53f14fdb8c4eb85eb44fc5e1"><td class="cellrowborder" valign="top" width="49.81%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001188482094__a4a67e7deb1e048238b2fa84d0ecc80f5">Query statements with single-line results</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.19%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001188482094__af736a15094a844f3956aa00d6fd963bc">Implicit or explicit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482094__r80813f2f8d1a40bba76d664c23c5fbe7"><td class="cellrowborder" valign="top" width="49.81%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001188482094__ab2477ea1612c44caa5bb4bfdc6f8d374">Query statements with multi-line results</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.19%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001188482094__af825567f1b804be98bae673899c27cd9">Explicit</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0545.html">Cursors</a></div>
|
|
</div>
|
|
</div>
|
|
|