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>
22 lines
2.2 KiB
HTML
22 lines
2.2 KiB
HTML
<a name="EN-US_TOPIC_0000001819416281"></a><a name="EN-US_TOPIC_0000001819416281"></a>
|
|
|
|
<h1 class="topictitle1">SET</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_p8060118">MySQL INSERT...SET statement inserts rows based on explicitly specified values.</p>
|
|
<p id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_p1331019407411"><strong id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_b1975719511947">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_screen432820548410"># INSERT INTO SET (Data records can be inserted specially. One record can be inserted at a time, and batch insertion is not supported.)
|
|
INSERT INTO exmp_tb2 SET tb2_price=56.1,tb2_note='unbelievable',tb2_date='2018-11-13';
|
|
INSERT INTO exmp_tb2 SET tb2_price=99.9,tb2_note='perfect',tb2_date='2018-10-13';
|
|
INSERT INTO exmp_tb2 SET tb2_id=9,tb2_price=99.9,tb2_note='perfect',tb2_date='2018-10-13';</pre>
|
|
<p id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_p189916016719"><strong id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_b81542120712">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416281__en-us_topic_0000001657865638_en-us_topic_0000001387411962_en-us_topic_0214164674_screen921671516716">-- INSERT INTO SET (Data records can be inserted specially. One record can be inserted at a time, and batch insertion is not supported.)
|
|
INSERT INTO "public"."exmp_tb2" ("tb2_price","tb2_note","tb2_date") VALUES (56.1,'unbelievable','2018-11-13');
|
|
INSERT INTO "public"."exmp_tb2" ("tb2_price","tb2_note","tb2_date") VALUES (99.9,'perfect','2018-10-13');
|
|
INSERT INTO "public"."exmp_tb2" ("tb2_id","tb2_price","tb2_note","tb2_date") VALUES (9,99.9,'perfect','2018-10-13');</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0184.html">INSERT</a></div>
|
|
</div>
|
|
</div>
|
|
|