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>
25 lines
1.8 KiB
HTML
25 lines
1.8 KiB
HTML
<a name="EN-US_TOPIC_0000001819336189"></a><a name="EN-US_TOPIC_0000001819336189"></a>
|
|
|
|
<h1 class="topictitle1">FOREIGN_KEY_CHECKS</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_p8060118">For foreign key constraints in MySQL, GaussDB(DWS) does not support them modifying table definition. They will be deleted during DSC migration.</p>
|
|
<p id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_p136041758101119"><strong id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_b077417395253">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_screen2088154513254">set foreign_key_checks = 0;
|
|
Create Table mall_order_dc (
|
|
id bigint NOT NULL AUTO_INCREMENT,
|
|
order_id varchar(50) NOT NULL,
|
|
key order_id(order_id)
|
|
);</pre>
|
|
<p id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_p97061333162516"><strong id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_b19207642172510">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819336189__en-us_topic_0000001706224141_en-us_topic_0000001449512505_screen597254913252">CREATE TABLE "public"."mall_order_dc" (
|
|
"id" BIGSERIAL NOT NULL,
|
|
"order_id" VARCHAR(200) NOT NULL
|
|
) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("id");
|
|
CREATE INDEX "order_id" ON "public"."mall_order_dc" USING BTREE ("order_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>
|
|
|