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

44 lines
2.8 KiB
HTML

<a name="EN-US_TOPIC_0000001772536504"></a><a name="EN-US_TOPIC_0000001772536504"></a>
<h1 class="topictitle1">DIRECTORY</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_p579713312318"><strong id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_b10987649003232">DIRECTORY</strong> enables a tablespace to be created outside the data directory and index directory. It allows <strong id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_b14560916893232">DATA DIRECTORY</strong> and <strong id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_b5116372303232">INDEX DIRECTORY</strong>. GaussDB(DWS) does not support table definition modification using this attribute. DSC will delete the attribute during migration.</p>
<p id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_p9770184613410"><strong id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_b10278155815549">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_screen1127363614498">CREATE TABLE `public`.`runoob_tbl_test1` (
`dataType1` int NOT NULL AUTO_INCREMENT,
`dataType2` DOUBLE(20,8),
PRIMARY KEY(`dataType1`)
) ENGINE=MYISAM DATA DIRECTORY = 'D:\\input' INDEX DIRECTORY= 'D:\\input';
CREATE TABLE `public`.`runoob_tbl_test2` (
`dataType1` int NOT NULL AUTO_INCREMENT,
`dataType2` DOUBLE(20,8),
PRIMARY KEY(`dataType1`)
) ENGINE=INNODB DATA DIRECTORY = 'D:\\input';</pre>
<p id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_p12114173518210"><strong id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_b02472135520">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536504__en-us_topic_0000001706224129_en-us_topic_0000001435896185_en-us_topic_0214164594_screen9733549145313">CREATE TABLE "public"."runoob_tbl_test1"
(
"datatype1" SERIAL NOT NULL,
"datatype2" DOUBLE PRECISION,
PRIMARY KEY ("datatype1")
)
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
NOCOMPRESS
DISTRIBUTE BY HASH ("datatype1");
CREATE TABLE "public"."runoob_tbl_test2"
(
"datatype1" SERIAL NOT NULL,
"datatype2" 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>