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

<a name="EN-US_TOPIC_0000001819416241"></a><a name="EN-US_TOPIC_0000001819416241"></a>
<h1 class="topictitle1">DROP (Table Deletion)</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_p186313195351">Both GaussDB(DWS) and MySQL support using the DROP statement to delete tables. However, GaussDB(DWS) does not support the <strong id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_b1181532811249">RESTRICT | CASCADE</strong> keyword in the DROP statement. DSC will delete the keywords during migration.</p>
<p id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_p8822521203711"><strong id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_b20727929204011">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_screen9190133515375">CREATE TABLE IF NOT EXISTS `public`.`express_elb_server`(
`runoob_id` VARCHAR(10),
`runoob_title` VARCHAR(100) NOT NULL,
`runoob_author` VARCHAR(40) NOT NULL,
`submission_date` VARCHAR(10)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE `public`.`express_elb_server` RESTRICT;</pre>
<p id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_p1431826173714"><strong id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_b11199142516406">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819416241__en-us_topic_0000001706224013_en-us_topic_0000001385776018_en-us_topic_0214164709_screen410063910371">CREATE TABLE IF NOT EXISTS "public"."express_elb_server"
(
"runoob_id" VARCHAR(40),
"runoob_title" VARCHAR(400) NOT NULL,
"runoob_author" VARCHAR(160) NOT NULL,
"submission_date" VARCHAR(40)
)
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
NOCOMPRESS
DISTRIBUTE BY HASH ("runoob_id");
DROP TABLE "public"."express_elb_server";</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>