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>
49 lines
2.4 KiB
HTML
49 lines
2.4 KiB
HTML
<a name="EN-US_TOPIC_0000001819336201"></a><a name="EN-US_TOPIC_0000001819336201"></a>
|
|
|
|
<h1 class="topictitle1">PACK_KEYS</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_p579713312318">In MySQL, <strong id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_b128989613032424">PACK_KEYS</strong> specifies the index compression mode in the MyISAM storage engine. GaussDB(DWS) does not support this attribute, which will be deleted by DSC during migration.</p>
|
|
<p id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_p8625165918420"><strong id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_b183861240195515">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_screen11491161995312">CREATE TABLE `public`.`runoob_alter_test`(
|
|
`dataType1` int NOT NULL AUTO_INCREMENT,
|
|
`dataType2` DOUBLE(20,8),
|
|
`dataType3` TEXT NOT NULL,
|
|
PRIMARY KEY(`dataType1`)
|
|
) ENGINE=MyISAM PACK_KEYS=1;
|
|
|
|
##A
|
|
ALTER TABLE runoob_alter_test PACK_KEYS 0;
|
|
ALTER TABLE runoob_alter_test PACK_KEYS=0;
|
|
|
|
##B
|
|
ALTER TABLE runoob_alter_test PACK_KEYS 1;
|
|
ALTER TABLE runoob_alter_test PACK_KEYS=1;
|
|
|
|
##C
|
|
ALTER TABLE runoob_alter_test PACK_KEYS DEFAULT;
|
|
ALTER TABLE runoob_alter_test PACK_KEYS=DEFAULT;</pre>
|
|
<p id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_p12114173518210"><strong id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_b964244412554">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336201__en-us_topic_0000001706104973_en-us_topic_0000001436055761_en-us_topic_0214164502_screen1360576145519">CREATE TABLE "public"."runoob_alter_test"
|
|
(
|
|
"datatype1" SERIAL NOT NULL,
|
|
|
|
"datatype2" DOUBLE PRECISION,
|
|
"datatype3" TEXT NOT NULL,
|
|
PRIMARY KEY ("datatype1")
|
|
)
|
|
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
NOCOMPRESS
|
|
DISTRIBUTE BY HASH ("datatype1");
|
|
|
|
--A
|
|
|
|
--B
|
|
|
|
--C</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>
|
|
|