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

32 lines
2.2 KiB
HTML

<a name="EN-US_TOPIC_0000001819336181"></a><a name="EN-US_TOPIC_0000001819336181"></a>
<h1 class="topictitle1">COLLATE</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_p579713312318">In MySQL, <strong id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_b138821155132326">COLLATE</strong> specifies a default database sorting rule. GaussDB(DWS) does not support table definition modification using this attribute. DSC will delete the keyword during migration.</p>
<p id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_p1632923415414"><strong id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_b6593195554515">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_screen252183922111">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)
) COLLATE=utf8_general_ci;
ALTER TABLE `public`.`runoob_tbl_test` COLLATE=utf8mb4_bin;</pre>
<p id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_p12114173518210"><strong id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_b12251359144513">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336181__en-us_topic_0000001706224113_en-us_topic_0000001385456442_en-us_topic_0214164518_screen11342634102316">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>