doc-exports/docs/dws/tool/DWS_DS_105.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

27 lines
5.8 KiB
HTML

<a name="EN-US_TOPIC_0000001233922155"></a><a name="EN-US_TOPIC_0000001233922155"></a>
<h1 class="topictitle1">Creating Sequence</h1>
<div id="body1584526252528"><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p89612595214">Follow the steps below to create a sequence:</p>
<ol id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_ol14939758"><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li185623420712"><span>In the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b2160855">Object Browser </strong>pane, right-click <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b19447695">Sequences</strong> under the particular schema where you want to create the sequence and select <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b28128170111528">Create Sequence</strong>.</span><p><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p147031036812">The <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b125141340151013">Create New Sequence</strong> dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li20971059226"><span>Provide information to create a sequence:</span><p><ol type="a" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_ol15356165215610"><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li1585212405910">Enter a name in the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b735615528567">Sequence Name</strong> field.<div class="note" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_note155771369712"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p492114224516">Select the<strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b175780617714"> Case</strong> check box to retain the capitalization of the text entered in <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b457813610710">Sequence Name</strong> field. For example, if the sequence name entered is "Employee", then the sequence name is created as "Employee".</p>
</div></div>
</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li118471740896">Enter the minimum value in the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b4804181435712">Minimum Value</strong> field.</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li13847940992">Enter the increase step value in the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b1365151911578">Increment By</strong> field.</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li20848640499">Enter maximum value in the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b2905822155717">Maximum Value</strong> field.<div class="note" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_note195015364111"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p1459016344105">The minimum and maximum value should be between -9223372036854775808 and 9223372036854775807.</p>
</div></div>
</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li48495409914">Enter the start value of the sequence in <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b85333266576">Start Value</strong> field.</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li1784920409914">Enter the cache information in <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b12446153017578">Cache </strong>field. The cache value denotes the number of sequences stored in the memory for quick access.</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li1885011409915">Select the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b756873925714">Cycle</strong> field to recycle sequences after the number of sequences reaches either the maximum or minimum value.<div class="note" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_note1128510214378"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p158461455151319">The schema name auto-populates in the<strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b368662716379"> Schema</strong> field.</p>
</div></div>
</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li585118402910">Select the table from the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b123781249105715">Table</strong> drop-down list.</li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li1485111400915">Select the column from the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b1636135317577">Column</strong> drop-down list.</li></ol>
</p></li><li id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_li165071542135019"><span>Click <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b19435151401919">Finish</strong>.</span><p><div class="p" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p89726217518">The status bar displays the status of the completed operation.<div class="note" id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_note1927964155617"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_p826721064910">In the <strong id="EN-US_TOPIC_0000001233922155__en-us_topic_0185264927_b122795414567">SQL Preview</strong> tab, you can view the SQL query automatically generated for the inputs provided.</p>
</div></div>
</div>
</p></li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_104.html">Sequences</a></div>
</div>
</div>