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.5 KiB
HTML
49 lines
2.5 KiB
HTML
<a name="EN-US_TOPIC_0000001819336205"></a><a name="EN-US_TOPIC_0000001819336205"></a>
|
|
|
|
<h1 class="topictitle1">STATS_AUTO_RECALC</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_p1481020141185"><strong id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_b58712809931754">STATS_AUTO_RECALC</strong> specifies whether to automatically recalculate persistent statistics for an InnoDB table. GaussDB(DWS) does not support this attribute, which will be deleted by DSC during migration.</p>
|
|
<p id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_p29165111653"><strong id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_b42391356562">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_screen6241195619015">CREATE TABLE `public`.`runoob_alter_test`(
|
|
`runoob_id` VARCHAR(30),
|
|
`runoob_title` VARCHAR(100) NOT NULL,
|
|
`runoob_author` VARCHAR(40) NOT NULL,
|
|
`submission_date` VARCHAR(30)
|
|
) ENGINE=InnoDB, STATS_AUTO_RECALC=DEFAULT;
|
|
|
|
## A.
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC DEFAULT;
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC=DEFAULT;
|
|
|
|
## B.
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC 0;
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC=0;
|
|
|
|
## C.
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC 1;
|
|
ALTER TABLE runoob_alter_test STATS_AUTO_RECALC=1;</pre>
|
|
<p id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_p12114173518210"><strong id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_b1020610835612">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336205__en-us_topic_0000001658024758_en-us_topic_0000001435815989_en-us_topic_0214164724_screen1360576145519">CREATE TABLE "public"."runoob_alter_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");
|
|
|
|
-- 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>
|
|
|