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

27 lines
2.7 KiB
HTML

<a name="EN-US_TOPIC_0000001772696244"></a><a name="EN-US_TOPIC_0000001772696244"></a>
<h1 class="topictitle1">REPLACE</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_en-us_topic_0214164395_p8060118">In MySQL, <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b98338486831955">REPLACE</strong> allows the following keywords: <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b213417572631955">LOW_PRIORITY</strong>, <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b12680086031955">PARTITION</strong>, <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b67416045631955">DELAYED</strong>, <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b202966145031955">VALUES</strong>, and <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b54381117231955">SET</strong>. The following examples are temporary migration solutions only.</p>
<div class="note" id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_en-us_topic_0214164395_note231022161112"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_en-us_topic_0214164395_p203101928111"><strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b201382716131955">REPLACE</strong> works exactly like <strong id="EN-US_TOPIC_0000001772696244__en-us_topic_0000001706224333_en-us_topic_0000001432447489_b62356356531955">INSERT</strong>, except that if an old row in the table has the same value as a new row for a primary key or unique index, the old row is deleted before the new row is inserted.</p>
</div></div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dws_16_0199.html">LOW_PRIORITY</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dws_16_0200.html">PARTITION</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dws_16_0201.html">DELAYED</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dws_16_0202.html">VALUES</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dws_16_0203.html">SET</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0177.html">Data Manipulation Language (DML)</a></div>
</div>
</div>