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>
37 lines
3.0 KiB
HTML
37 lines
3.0 KiB
HTML
<a name="EN-US_TOPIC_0000001772536500"></a><a name="EN-US_TOPIC_0000001772536500"></a>
|
|
|
|
<h1 class="topictitle1">CONNECTION</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_p579713312318">GaussDB(DWS) does not support table definition modification using this attribute. DSC will delete the attribute during migration.</p>
|
|
<div class="caution" id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_note9749104517138"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_p117497455133">In MySQL, the keyword <strong id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_b24567289532421">CONNECTION</strong> is used as a referenced, external data source. Currently, DSC cannot completely migrate the feature of <strong id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_b77850496932421">CONNECTION</strong>. So as a workaround, it simply deletes the keyword.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_p1752404014416"><strong id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_b1763314499544">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_screen6661259162415">CREATE TABLE `public`.`runoob_alter_test`(
|
|
`dataType1` int NOT NULL AUTO_INCREMENT,
|
|
`dataType2` DOUBLE(20,8),
|
|
`dataType3` TEXT NOT NULL,
|
|
`dataType4` YEAR NOT NULL DEFAULT '2018',
|
|
PRIMARY KEY(`dataType1`)
|
|
);
|
|
|
|
ALTER TABLE runoob_alter_test CONNECTION 'hello';
|
|
ALTER TABLE runoob_alter_test CONNECTION='hello';</pre>
|
|
<p id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_p12114173518210"><strong id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_b15563352165411">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536500__en-us_topic_0000001706104849_en-us_topic_0000001436055757_en-us_topic_0214164618_screen113702403278">CREATE TABLE "public"."runoob_alter_test"
|
|
(
|
|
"datatype1" SERIAL NOT NULL,
|
|
"datatype2" DOUBLE PRECISION,
|
|
"datatype3" TEXT NOT NULL,
|
|
"datatype4" SMALLINT NOT NULL DEFAULT '2018',
|
|
PRIMARY KEY ("datatype1")
|
|
)
|
|
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
NOCOMPRESS
|
|
DISTRIBUTE BY HASH ("datatype1");</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0119.html">Table (Optional Parameters and Operations)</a></div>
|
|
</div>
|
|
</div>
|
|
|