1
0
forked from docs/doc-exports
doc-exports/docs/dws/tool/dws_16_0139.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
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>
2024-05-16 07:35:25 +00:00

37 lines
2.8 KiB
HTML

<a name="EN-US_TOPIC_0000001819416225"></a><a name="EN-US_TOPIC_0000001819416225"></a>
<h1 class="topictitle1">INSERT_METHOD</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_p1187315419415"><strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_b171077944531648">INSERT_METHOD</strong> specifies the table into which the row should be inserted. Use a value of <strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_b193722390031648">FIRST</strong> or <strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_b19131162831648">LAST</strong> to have inserts go to the first or last table, or a value of <strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_b187893060131648">NO</strong> to prevent inserts. DSC will delete this attribute during migration.</p>
<p id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_p123702501346"><strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_b11041494554">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_screen13295161583220">CREATE TABLE `public`.`runoob_alter_test`(
`dataType1` int NOT NULL AUTO_INCREMENT,
`dataType2` DOUBLE(20,8),
`dataType3` TEXT NOT NULL,
PRIMARY KEY(`dataType1`)
) INSERT_METHOD=LAST;
ALTER TABLE runoob_alter_test INSERT_METHOD NO;
ALTER TABLE runoob_alter_test INSERT_METHOD=NO;
ALTER TABLE runoob_alter_test INSERT_METHOD FIRST;
ALTER TABLE runoob_alter_test INSERT_METHOD=FIRST;
ALTER TABLE runoob_alter_test INSERT_METHOD LAST;
ALTER TABLE runoob_alter_test INSERT_METHOD=LAST;</pre>
<p id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_p12114173518210"><strong id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_b153181217550">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416225__en-us_topic_0000001658024974_en-us_topic_0000001385776010_en-us_topic_0214164615_screen38432053610">CREATE TABLE "public"."runoob_alter_test"
(
"datatype1" SERIAL NOT NULL,
"datatype2" DOUBLE PRECISION,
"datatype3" TEXT NOT NULL,
PRIMARY KEY ("datatype1")
)
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
NOCOMPRESS
DISTRIBUTE BY HASH ("datatype1");</pre>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0119.html">Table (Optional Parameters and Operations)</a></div>
</div>
</div>