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

34 lines
3.2 KiB
HTML

<a name="EN-US_TOPIC_0000001819336245"></a><a name="EN-US_TOPIC_0000001819336245"></a>
<h1 class="topictitle1">IGNORE</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_p8060118">When the <strong id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_b17385447732513">IGNORE</strong> modifier is used, errors that occur during <strong id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_b114472465632513">INSERT</strong> execution are ignored.</p>
<p id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_p983394010296"><strong id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_b2051511490292">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_screen123475526298"># New data will be ignored if there is duplicate in the table.
INSERT IGNORE INTO exmp_tb2 VALUES(189, '189.23','nice','2017-11-12');
INSERT IGNORE INTO exmp_tb2 VALUES(130,'189.23','nice','2017-11-12');
INSERT IGNORE INTO exmp_tb2 VALUES(120,15.68,'good','2018-11-12');
INSERT IGNORE INTO exmp_tb2 VALUES(DEFAULT,128.23,'nice','2018-10-11');
INSERT IGNORE INTO exmp_tb2 VALUES(DEFAULT,DEFAULT,'nice','2018-12-14');
INSERT IGNORE INTO exmp_tb2 VALUES(DEFAULT,DEFAULT,'nice',DEFAULT);
INSERT IGNORE INTO exmp_tb2 (tb2_id,tb2_price) VALUES(DEFAULT,DEFAULT);
INSERT IGNORE INTO exmp_tb2 (tb2_id,tb2_price,tb2_note) VALUES(DEFAULT,DEFAULT,DEFAULT);
INSERT IGNORE INTO exmp_tb2 (tb2_id,tb2_price,tb2_note,tb2_date) VALUES(DEFAULT,DEFAULT,DEFAULT,DEFAULT);</pre>
<p id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_p29091657112913"><strong id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_b3501163304">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336245__en-us_topic_0000001706223969_en-us_topic_0000001387731506_en-us_topic_0214164397_screen206763820304">-- New data will be ignored if there is duplicate in the table.
INSERT INTO "public"."exmp_tb2" VALUES (101,'189.23','nice','2017-11-12');
INSERT INTO "public"."exmp_tb2" VALUES (130,'189.23','nice','2017-11-12');
INSERT INTO "public"."exmp_tb2" VALUES (120,15.68,'good','2018-11-12');
INSERT INTO "public"."exmp_tb2" VALUES (DEFAULT,128.23,'nice','2018-10-11');
INSERT INTO "public"."exmp_tb2" VALUES (DEFAULT,DEFAULT,'nice','2018-12-14');
INSERT INTO "public"."exmp_tb2" VALUES (DEFAULT,DEFAULT,'nice',DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price") VALUES (DEFAULT,DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price","tb2_note") VALUES (DEFAULT,DEFAULT,DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price","tb2_note","tb2_date") VALUES (DEFAULT,DEFAULT,DEFAULT,DEFAULT);</pre>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0184.html">INSERT</a></div>
</div>
</div>