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

25 lines
2.0 KiB
HTML

<a name="EN-US_TOPIC_0000001819416209"></a><a name="EN-US_TOPIC_0000001819416209"></a>
<h1 class="topictitle1">CLUSTERED KEY</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_p8060118">It is a clustered index in ADB that defines the sorting sequence in a table. The logical sequence of key values in a clustered index determines the physical sequence of rows in the table. GaussDB(DWS) does not support table definition modification using this attribute. DSC will delete the keyword during migration.</p>
<p id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_p239011217817"><strong id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_b163314112814">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_screen860331891013">drop table if exists unsupport_parse_test;
create table `unsupport_parse_test` (
`username` int,
clustered key clustered_key(shopid ASC, datetype ASC)
);
drop table if exists unsupport_parse_test;</pre>
<p id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_p057475482"><strong id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_b91981142811">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416209__en-us_topic_0000001657865578_en-us_topic_0000001447330941_screen1090715309105">DROP TABLE IF EXISTS "public"."unsupport_parse_test";
CREATE TABLE "public"."unsupport_parse_test" (
"username" INTEGER
) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("username");
DROP TABLE IF EXISTS "public"."unsupport_parse_test";</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>