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

36 lines
2.3 KiB
HTML

<a name="EN-US_TOPIC_0000001772536496"></a><a name="EN-US_TOPIC_0000001772536496"></a>
<h1 class="topictitle1">CHECKSUM</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_p579713312318">In MySQL, <strong id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_b129579190331822">CHECKSUM</strong> maintains a live checksum for all rows. GaussDB(DWS) does not support table definition modification using this attribute. DSC will delete the keyword during migration.</p>
<p id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_p1752404014416"><strong id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_b1763314499544">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_screen287831351410">CREATE TABLE `public`.`runoob_alter_test`(
`dataType1` int NOT NULL AUTO_INCREMENT,
`dataType2` FLOAT(10,2),
`dataType3` DOUBLE(20,8),
PRIMARY KEY(`dataType1`)
) CHECKSUM=1;
ALTER TABLE runoob_alter_test CHECKSUM 0;
ALTER TABLE runoob_alter_test CHECKSUM=0;
ALTER TABLE runoob_alter_test CHECKSUM 1;
ALTER TABLE runoob_alter_test CHECKSUM=1;</pre>
<p id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_p12114173518210"><strong id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_b184541816151717">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536496__en-us_topic_0000001706224121_en-us_topic_0000001385296890_en-us_topic_0214164589_screen13766191113164">CREATE TABLE "public"."runoob_alter_test"
(
"datatype1" SERIAL NOT NULL,
"datatype2" REAL,
"datatype3" DOUBLE PRECISION,
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>