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>
32 lines
2.1 KiB
HTML
32 lines
2.1 KiB
HTML
<a name="EN-US_TOPIC_0000001772536544"></a><a name="EN-US_TOPIC_0000001772536544"></a>
|
|
|
|
<h1 class="topictitle1">Comment</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_p8060118">To comment out a single line, MySQL uses # or --, and GaussDB(DWS) uses --. DSC will replace # with -- for commenting out a single line during migration.</p>
|
|
<p id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_p81991901721"><strong id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_b19427131226">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_screen82007491711">## comment sample create a table
|
|
CREATE TABLE IF NOT EXISTS `public`.`runoob_tbl`(
|
|
`runoob_id` VARCHAR,
|
|
`runoob_title` VARCHAR(100) NOT NULL,
|
|
`runoob_author` VARCHAR(40) NOT NULL,
|
|
`submission_date` VARCHAR
|
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre>
|
|
<p id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_p07251520113"><strong id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_b15185132115210">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536544__en-us_topic_0000001706223905_en-us_topic_0000001382367714_en-us_topic_0214164389_screen1069516547110">-- comment sample create a table
|
|
CREATE TABLE IF NOT EXISTS "public"."runoob_tbl"
|
|
(
|
|
"runoob_id" VARCHAR,
|
|
"runoob_title" VARCHAR(400) NOT NULL,
|
|
"runoob_author" VARCHAR(160) NOT NULL,
|
|
"submission_date" VARCHAR
|
|
)
|
|
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_0118.html">Schema Objects and Data Definition Language (DDL)</a></div>
|
|
</div>
|
|
</div>
|
|
|