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>
186 lines
21 KiB
HTML
186 lines
21 KiB
HTML
<a name="EN-US_TOPIC_0000001188323712"></a><a name="EN-US_TOPIC_0000001188323712"></a>
|
|
|
|
<h1 class="topictitle1">Processing Data in a Result Set</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188323712__s2dbeb414c3704d41bb86b1562a38a3f4"><h4 class="sectiontitle">Setting a Result Set Type</h4><p id="EN-US_TOPIC_0000001188323712__a2e95d3d210864a0fb72139aed9a3e9ee">Different types of result sets are applicable to different application scenarios. Applications select proper types of result sets based on requirements. Before executing an SQL statement, you must create a statement object. Some methods of creating statement objects can set the type of a result set. <a href="#EN-US_TOPIC_0000001188323712__tf4a21db4c1e4442387c08601671ce2f4">Table 1</a> lists result set parameters. The related Connection methods are as follows:</p>
|
|
<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0000001188323712__s889beb6999f14f02952cb161ce6de982"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</span>
|
|
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1">//Create a Statement object. This object will generate a ResultSet object with a specified type and concurrency.</span>
|
|
<span class="n">createStatement</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetType</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetConcurrency</span><span class="p">);</span>
|
|
|
|
<span class="c1">//Create a PreparedStatement object. This object will generate a ResultSet object with a specified type and concurrency.</span>
|
|
<span class="n">prepareStatement</span><span class="p">(</span><span class="n">String</span><span class="w"> </span><span class="n">sql</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetType</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetConcurrency</span><span class="p">);</span>
|
|
|
|
<span class="c1">//Create a CallableStatement object. This object will generate a ResultSet object with a specified type and concurrency.</span>
|
|
<span class="n">prepareCall</span><span class="p">(</span><span class="n">String</span><span class="w"> </span><span class="n">sql</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetType</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">resultSetConcurrency</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188323712__tf4a21db4c1e4442387c08601671ce2f4"></a><a name="tf4a21db4c1e4442387c08601671ce2f4"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323712__tf4a21db4c1e4442387c08601671ce2f4" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Result set types</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323712__r40d92343ef944ef68fea70229262dd1a"><th align="left" class="cellrowborder" valign="top" width="27.339999999999996%" id="mcps1.3.1.4.2.3.1.1"><p id="EN-US_TOPIC_0000001188323712__a61f70bd94fac442c8cd537ac0ef79dbd">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="72.66%" id="mcps1.3.1.4.2.3.1.2"><p id="EN-US_TOPIC_0000001188323712__aa0d5ac98a6064b1699ace0d52da29197">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323712__ref624d97f9df4949a09361fcd2700d5f"><td class="cellrowborder" valign="top" width="27.339999999999996%" headers="mcps1.3.1.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ab530645a6188474094785e624c038ac5">resultSetType</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.66%" headers="mcps1.3.1.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a4679d6ea2130436bb8d70f3cd20631ed">Indicates the type of a result set. There are three types of result sets:</p>
|
|
<ul id="EN-US_TOPIC_0000001188323712__u1664852cf1d64f38941bab3e81b89dd1"><li id="EN-US_TOPIC_0000001188323712__l58791580276e4fa988c1cf15cb7019f4"><strong id="EN-US_TOPIC_0000001188323712__b3870904514916">ResultSet.TYPE_FORWARD_ONLY</strong>: The ResultSet object can only be navigated forward. It is the default value.</li><li id="EN-US_TOPIC_0000001188323712__lb1ff029dafea4d48a7df70f121048c3b"><strong>ResultSet.TYPE_SCROLL_SENSITIVE</strong>: You can view the modified result by scrolling to the modified row.</li><li id="EN-US_TOPIC_0000001188323712__lb8dc2f09f1b841d0a6a230db4722c472"><strong>ResultSet.TYPE_SCROLL_INSENSITIVE</strong>: The ResultSet object is insensitive to changes in the underlying data source.</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0000001188323712__n272cd80fa5804d86aa4a6696c07dba67"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001188323712__a6081deb1b02e4ac2a64fc1834ea98b88">After a result set has obtained data from the database, the result set is insensitive to data changes made by other transactions, even if the result set type is <strong id="EN-US_TOPIC_0000001188323712__b1964703114916">ResultSet.TYPE_SCROLL_SENSITIVE</strong>. To obtain up-to-date data of the record pointed by the cursor from the database, call the refreshRow() method in a ResultSet object.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rb1ab2b3a9b8d48ebb92e6d000b5f0ee6"><td class="cellrowborder" valign="top" width="27.339999999999996%" headers="mcps1.3.1.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ae49a8005c7c14dd89a312c9c78576371">resultSetConcurrency</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.66%" headers="mcps1.3.1.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a39f53179172345ecb67123e2b27d2672">Indicates the concurrency type of a result set. There are two types of concurrency.</p>
|
|
<ul id="EN-US_TOPIC_0000001188323712__uca264e0c1f9742998a07094c121fe9ca"><li id="EN-US_TOPIC_0000001188323712__l6db0e493331048d5acd72d6d40792daf"><strong>ResultSet.CONCUR_READ_ONLY</strong>: The data in a result set cannot be updated except that an updated statement has been created in the result set data.</li><li id="EN-US_TOPIC_0000001188323712__lc63b58bf358a499fbfd242c647bd7b1f"><strong id="EN-US_TOPIC_0000001188323712__b558478714916">ResultSet.CONCUR_UPDATEABLE</strong>: changeable result set. The concurrency type for a result set object can be updated if the result set is scrollable.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188323712__sc2acc727959e4260a2705a6f5c74ca4d"><h4 class="sectiontitle">Positioning a Cursor in a Result Set</h4><p id="EN-US_TOPIC_0000001188323712__a1ca4c0f431064823a8d5a170061c7efb">ResultSet objects include a cursor pointing to the current data row. The cursor is initially positioned before the first row. The next method moves the cursor to the next row from its current position. When a ResultSet object does not have a next row, a call to the next method returns <strong id="EN-US_TOPIC_0000001188323712__b3944064214916">false</strong>. Therefore, this method is used in the while loop for result set iteration. However, the JDBC driver provides more cursor positioning methods for scrollable result sets, which allows positioning cursor in the specified row. <a href="#EN-US_TOPIC_0000001188323712__t7c74083b23ab4f64a5f834fed336b1d3">Table 2</a> lists these methods.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188323712__t7c74083b23ab4f64a5f834fed336b1d3"></a><a name="t7c74083b23ab4f64a5f834fed336b1d3"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323712__t7c74083b23ab4f64a5f834fed336b1d3" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Methods for positioning a cursor in a result set</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323712__rff18aadc29dd4c70a56c238d7b53b4ce"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.2.3.1.1"><p id="EN-US_TOPIC_0000001188323712__afbc56e632f0042b9ba9fd12df11e2dfb">Method</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.2.3.1.2"><p id="EN-US_TOPIC_0000001188323712__aeac9bedaecdc48568c5ddb2dfd586720">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323712__rfbe5e00f51934d7194e3ba44262a05a0"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a7faa0af7cff840b2b32e438ae0ecd587">next()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__afec93c934daa41428815a6ebab63571d">Moves cursor to the next row from its current position.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rb13611bb628941b7a1220dfdf3bb90a1"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a0560f4381f3e42b1bac74012c3691497">previous()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ad0928809690f4a70bd3f4ca48bf12071">Moves cursor to the previous row from its current position.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__ra1a3ffa8c488489dbd380d84cd6ba76b"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a5cfb761e1af8494fb599ca06e0b140af">beforeFirst()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ac7356435de2b494f9bb47352f80844fa">Places cursor before the first row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r166ffdb01fee4d709336933558736303"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a5a7f473a6eb746939fd0a5cdb1271b08">afterLast()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ac7b52415acb84c0a953e3a60476ed0a0">Places cursor after the last row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r2a083a24d00248dfac830d2fd7ce72e4"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a0a0c76c55ac142beae2124fdc30585dd">first()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a057cd80da9f64f19a2123f89823d4890">Places cursor to the first row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r8385311557ed4727bc7004cfe42359e2"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a15ec3841111441b48ac76ba7e1f17945">last()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ad8a59a91dff84bd59fa6ebb934ffb4db">Places cursor to the last row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rd9e5abe2bcca4093a6cc7b71c20e89f7"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ac616836e17f14c69a7d7a4498442a811">absolute(int)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a91ad70b5d16744af8b2e27cdd87d5209">Places cursor to a specified row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r97c2876dc565463fa96d9c9c42d0952a"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a2727b1c7dd224e74836948a0fc5d36a2">relative(int)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a6194e20d567a43d1bf38c2311f4bc979">Moves cursor forward or backward a specified number of rows.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188323712__s43ff7f9600d54a9fbc94764f26a522c4"><h4 class="sectiontitle">Obtaining the cursor position from a result set</h4><p id="EN-US_TOPIC_0000001188323712__a13add4f4a29d4ef892f213297dbcd204">This cursor positioning method will be used to change the cursor position for a scrollable result set. JDBC driver provides a method to obtain the cursor position in a result set. <a href="#EN-US_TOPIC_0000001188323712__tfd5153ee41c24ba2b4651df5d3284791">Table 3</a> lists the method.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188323712__tfd5153ee41c24ba2b4651df5d3284791"></a><a name="tfd5153ee41c24ba2b4651df5d3284791"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323712__tfd5153ee41c24ba2b4651df5d3284791" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Method for obtaining the cursor position in a result set</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323712__r22832a2732ba4dab96fbe853d2959eec"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.3.1.1"><p id="EN-US_TOPIC_0000001188323712__afdef2e6c8eb640baa208010ea5b76c2b">Method</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.3.1.2"><p id="EN-US_TOPIC_0000001188323712__ae8d6aad6d1024292906891a2d03a8d92">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323712__r9614749ee9cb4cdcafdcb85a4d75428b"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ac680374a7dc742aeb0bde17b1dd0a43d">isFirst()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ad0ec1d0eacaf45c2b801a7e325d922c1">Checks whether the cursor is in the first row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rf25dd72da82a496692ef38d306929ee7"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ac756f54e229e44539fd7c78d5f7d27e2">isLast()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__acecdf821e85a408fa75caefcbcb8e067">Checks whether the cursor is in the last row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rc2a4d234e3d7419aacdfd98b3b7d5711"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a7d80de42390943d09d35487566a6944a">isBeforeFirst()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a448a45181ab74b1da54f40eab2d7ea65">Checks whether the cursor is before the first row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__rea7787ac617d4f9281bbc3fdd11248df"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__aa8031b2222054086a2a582135d8f4d71">isAfterLast()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a228fb6beb798432a8d92f89296fdad66">Checks whether the cursor is after the last row.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r499b93bf06224118a4ba82785ae55d88"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a3a9ef19c74cb4edd9437c0286cf508a2">getRow()</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__aaa7f67d5f9c3427095bbf9fe8c3cdf62">Gets the current row number of the cursor.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188323712__s4e4a6cee4ea34d6baa21dda274dd986b"><h4 class="sectiontitle">Obtaining data from a result set</h4><p id="EN-US_TOPIC_0000001188323712__a53ea89c53e0e43e0b2e3e11df03898bf">ResultSet objects provide a variety of methods to obtain data from a result set. <a href="#EN-US_TOPIC_0000001188323712__te04a9fc2304947d4aea4b6d93aaae1b5">Table 4</a> lists the common methods for obtaining data. If you want to know more about other methods, see JDK official documents.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188323712__te04a9fc2304947d4aea4b6d93aaae1b5"></a><a name="te04a9fc2304947d4aea4b6d93aaae1b5"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323712__te04a9fc2304947d4aea4b6d93aaae1b5" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Common methods for obtaining data from a result set</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323712__r140345648c2f4afd857b588850b9a538"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.3.1.1"><p id="EN-US_TOPIC_0000001188323712__ada2d96e779674ad099d635ee5c222d1e"><strong id="EN-US_TOPIC_0000001188323712__b84235270616346">Method</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.3.1.2"><p id="EN-US_TOPIC_0000001188323712__a75d73956d2f442eeba4fe109be64fbb6">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323712__r7305ae089ded464dbd16af97541e90c0"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a52da8ee8b30c4cc2a545623948f723dd">int getInt(int columnIndex)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a3619097888e14b8ea51a9e2234a09861">Retrieves the value of the column designated by a column index in the current row as an int.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r8563be04e38a44149a9cf15cc2b6a87b"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a59d701f0888642afbd04d88bf72ebc43">int getInt(String columnLabel)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a5a617eadfcb946418659f053e1b402ee">Retrieves the value of the column designated by a column label in the current row as an int.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r9edf8584b26d4aa29d31d436b5f065e9"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a51b10d693a8a4339985b93f5e7761157">String getString(int columnIndex)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__afe46df6a3fd74d39b21cb504a6934bfb">Retrieves the value of the column designated by a column index in the current row as a String.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r954ac3a147274dabb08046ab1dacf048"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__ade711a8da7be4e2dbbe82831b1f4e564">String getString(String columnLabel)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__a54ceeadcd31042ddac636dc96cf3b277">Retrieves the value of the column designated by a column label in the current row as a String.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r68724dc937fe43ef8b68ac75abcacbc6"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a7cad938dc76c48bc94b37a2d13e42d77">Date getDate(int columnIndex)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__aaa2a3d5e6ec541469ae2ecbd1035b095">Retrieves the value of the column designated by a column index in the current row as a Date.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323712__r5ab368195e634c80ade018715fd01bdf"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188323712__a3fdff4b6f7794f3793b013a035e65d73">Date getDate(String columnLabel)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188323712__ae37cbcb99d064a928dcc68b4b297559d">Retrieves the value of the column designated by a column name in the current row as a Date.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0088.html">JDBC-Based Development</a></div>
|
|
</div>
|
|
</div>
|
|
|