doc-exports/docs/dws/tool/dws_16_0201.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
4.8 KiB
HTML

<a name="EN-US_TOPIC_0000001819336257"></a><a name="EN-US_TOPIC_0000001819336257"></a>
<h1 class="topictitle1">DELAYED</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_p795241642610"></p>
<div class="warning" id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_note29110268416"><span class="warningtitle"><img src="public_sys-resources/warning_3.0-en-us.png"> </span><div class="warningbody"><p id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_p391112268419"><strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b107578619332432">DELAYED</strong> <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b199953586232432">INSERT</strong> and <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b25460828532432">REPLACE</strong> operations were deprecated in MySQL 5.6. In MySQL 5.7, <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b121111305832432">DELAYED</strong> was not supported. The server recognizes but ignores the <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b165764166632432">DELAYED</strong> keyword, handles <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b117796583132432">REPLACE</strong> as a non-delayed one, and generates an <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b37777009332432">ER_WARN_LEGACY_SYNTAX_CONVERTED</strong> warning. (<strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b51822771232432">REPLACE DELAYED</strong> is no longer supported, and the statement is converted to <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b139720934832432">REPLACE</strong>.) The keyword <strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_b159955022932432">DELAYED</strong> will be deleted in later versions.</p>
</div></div>
<p id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_p8060118"><strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_b7736145119588">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_screen20978453165814">#DELAYED INSERT DELAYED works only with MyISAM, MEMORY, ARCHIVE, and BLACKHOLE tables.
#If you execute INSERT DELAYED with another storage engine,
#you will get an error like this: ERROR 1616 (HY000): DELAYED option not supported
Replace DELAYED INTO exmp_tb2 VALUES(10, 128.23, 'nice', '2018-10-11 19:00:00');
Replace DELAYED INTO exmp_tb2 VALUES(6, DEFAULT, 'nice', '2018-12-14 19:00:00');
Replace DELAYED INTO exmp_tb2 VALUES(7, 20, 'nice', DEFAULT);
Replace DELAYED INTO exmp_tb2 (tb2_id, tb2_price) VALUES(11, DEFAULT);
Replace DELAYED INTO exmp_tb2 (tb2_id, tb2_price, tb2_note) VALUES(12, DEFAULT, DEFAULT);
Replace DELAYED INTO exmp_tb2 (tb2_id, tb2_price, tb2_note, tb2_date) VALUES(13, DEFAULT, DEFAULT, DEFAULT);</pre>
<p id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_p18723678596"><strong id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_b1342818151593">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336257__en-us_topic_0000001657865274_en-us_topic_0000001387587120_en-us_topic_0214164482_screen1474124285915">--DELAYED INSERT DELAYED works only with MyISAM, MEMORY, ARCHIVE, and BLACKHOLE tables.
--If you execute INSERT DELAYED with another storage engine,
--you will get an error like this: ERROR 1616 (HY000): DELAYED option not supported.
INSERT INTO "public"."exmp_tb2" VALUES (10,128.23,'nice','2018-10-11 19:00:00');
INSERT INTO "public"."exmp_tb2" VALUES (6,DEFAULT,'nice','2018-12-14 19:00:00');
INSERT INTO "public"."exmp_tb2" VALUES (7,20,'nice',DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price") VALUES (11,DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price","tb2_note") VALUES (12,DEFAULT,DEFAULT);
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price","tb2_note","tb2_date") VALUES (13,DEFAULT,DEFAULT,DEFAULT);</pre>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0198.html">REPLACE</a></div>
</div>
</div>