doc-exports/docs/dws/tool/dws_07_6843.html
Lu, Huayi 346ac31da9 DWS TG 8.1.3.200 VERSION
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-08-28 09:20:17 +00:00

51 lines
4.7 KiB
HTML

<a name="EN-US_TOPIC_0000001188202554"></a><a name="EN-US_TOPIC_0000001188202554"></a>
<h1 class="topictitle1">Index Migration (DB2)</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_section15598165217561"><h4 class="sectiontitle">Reverse Scans</h4><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p1364505217567">Reverse Scans</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_table2059911525563" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row20645115220563"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.1"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p96451152135618"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b1017212444475">DB2 Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.2"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p9646852165614"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b81851635102616">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row8646175215617"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen5646175265619">CREATE INDEX IDX_1 ON EMP
(ID ASC) ALLOW REVERSE SCANS;
CREATE INDEX IDX_1 ON EMP
(ID ASC) DISALLOW REVERSE SCANS;</pre>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen66462523568">CREATE INDEX IDX_1 ON EMP
(ID ASC) /*ALLOW REVERSE SCANS*/;
CREATE INDEX IDX_1 ON EMP
(ID ASC) /*DISALLOW REVERSE SCANS*/;</pre>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_section961045213566"><h4 class="sectiontitle">Schema</h4><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p96461352125614">index's schema is different from its table's schema.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_table7611135211562" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row206461952115614"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.3.1.1"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p56461752125617"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b97012022536">DB2 Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.3.1.2"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p146461052175613"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b1319784312303">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row364645211566"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen6646652125614">CREATE INDEX IDXSC.IDX_1 ON EMP (ID ASC);</pre>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen164617529560">CREATE INDEX IDX_1 ON EMP (ID ASC);</pre>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0684.html">DB2 Syntax Migration</a></div>
</div>
</div>