forked from docs/doc-exports
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>
24 lines
2.2 KiB
HTML
24 lines
2.2 KiB
HTML
<a name="EN-US_TOPIC_0000001819416289"></a><a name="EN-US_TOPIC_0000001819416289"></a>
|
|
|
|
<h1 class="topictitle1">PARTITION</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_p16920195411291">MySQL REPLACE supports explicit partitioning selection using the PARTITION keyword and a comma-separated name list for partitions, subpartitions, or both.</p>
|
|
<p id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_p8060118"><strong id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_b1073714469114">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_screen583134913110">replace INTO employees PARTITION(p3) VALUES (19, 'Frank1', 'Williams', 1, 2);
|
|
replace INTO employees PARTITION(p0) VALUES (4, 'Frank1', 'Williams', 1, 2);
|
|
replace INTO employees PARTITION(p1) VALUES (9, 'Frank1', 'Williams', 1, 2);
|
|
replace INTO employees PARTITION(p2) VALUES (10, 'Frank1', 'Williams', 1, 2);
|
|
replace INTO employees PARTITION(p2) VALUES (11, 'Frank1', 'Williams', 1, 2);</pre>
|
|
<p id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_p169797531015"><strong id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_b6952131221">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416289__en-us_topic_0000001657865642_en-us_topic_0000001438146801_en-us_topic_0214164784_screen116246624">INSERT INTO "public"."employees" VALUES (19,'Frank1','Williams',1,2);
|
|
INSERT INTO "public"."employees" VALUES (4,'Frank1','Williams',1,2);
|
|
INSERT INTO "public"."employees" VALUES (9,'Frank1','Williams',1,2);
|
|
INSERT INTO "public"."employees" VALUES (10,'Frank1','Williams',1,2);
|
|
INSERT INTO "public"."employees" VALUES (11,'Frank1','Williams',1,2);</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0198.html">REPLACE</a></div>
|
|
</div>
|
|
</div>
|
|
|