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

33 lines
2.7 KiB
HTML

<a name="EN-US_TOPIC_0000001819336193"></a><a name="EN-US_TOPIC_0000001819336193"></a>
<h1 class="topictitle1">KEY_BLOCK_SIZE</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_p579713312318"><strong id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_b175906441631651">KEY_BLOCK_SIZE</strong> choices vary depending on the storage engine used for a table. For MyISAM tables, <strong id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_b42913954831651">KEY_BLOCK_SIZE</strong> optionally specifies the size in bytes to be used for index key blocks. For InnoDB tables, <strong id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_b77081355231651">KEY_BLOCK_SIZE</strong> specifies the page size in kilobytes to be used for compressed InnoDB tables. GaussDB(DWS) does not support this attribute, which will be deleted by DSC during migration.</p>
<p id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_p35351252542"><strong id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_b2692816185513">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_screen154311436362">CREATE TABLE `public`.`runoob_tbl_test`(
`runoob_id` VARCHAR(30),
`runoob_title` VARCHAR(100) NOT NULL,
`runoob_author` VARCHAR(40) NOT NULL,
`submission_date` VARCHAR(30)
) ENGINE=MyISAM KEY_BLOCK_SIZE=8;
ALTER TABLE runoob_tbl_test ENGINE=InnoDB;
ALTER TABLE runoob_tbl_test KEY_BLOCK_SIZE=0;</pre>
<p id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_p12114173518210"><strong id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_b1143182020551">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336193__en-us_topic_0000001706224233_en-us_topic_0000001385296894_en-us_topic_0214164414_screen10934142533613">CREATE TABLE "public"."runoob_tbl_test"
(
"runoob_id" VARCHAR(120),
"runoob_title" VARCHAR(400) NOT NULL,
"runoob_author" VARCHAR(160) NOT NULL,
"submission_date" VARCHAR(120)
)
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
NOCOMPRESS
DISTRIBUTE BY HASH ("runoob_id");</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>