doc-exports/docs/dws/tool/dws_16_0151.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.2 KiB
HTML

<a name="EN-US_TOPIC_0000001772536520"></a><a name="EN-US_TOPIC_0000001772536520"></a>
<h1 class="topictitle1">STATS_SAMPLE_PAGES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_p16888958111719"><strong id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_b110256120631855">STATS_SAMPLE_PAGES</strong> specifies the number of index pages to sample when cardinality and other statistics for an indexed column are estimated. DSC will delete this attribute during migration.</p>
<p id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_p20279151915518"><strong id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_b387572005617">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_screen66474452410">CREATE TABLE `public`.`runoob_alter_test`(
`dataType1` int NOT NULL AUTO_INCREMENT,
`dataType2` DOUBLE(20,8),
`dataType3` TEXT NOT NULL,
PRIMARY KEY(`dataType1`)
) ENGINE=InnoDB,STATS_SAMPLE_PAGES=25;
ALTER TABLE runoob_alter_test STATS_SAMPLE_PAGES 100;
ALTER TABLE runoob_alter_test STATS_SAMPLE_PAGES=100;</pre>
<p id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_p12114173518210"><strong id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_b75709255564">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536520__en-us_topic_0000001706224149_en-us_topic_0000001385296898_en-us_topic_0214164636_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");</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>