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>
46 lines
3.8 KiB
HTML
46 lines
3.8 KiB
HTML
<a name="EN-US_TOPIC_0000001819416217"></a><a name="EN-US_TOPIC_0000001819416217"></a>
|
|
|
|
<h1 class="topictitle1">ENGINE</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_p579713312318">In MySQL, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b119893758031625">ENGINE</strong> specifies the storage engine for a table. When the storage engine is <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b27788618331625">ARCHIVE</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b86309531731625">BLACKHOLE</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b83245451731625">CSV</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b26312472231625">FEDERATED</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b51228183631625">INNODB</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b58854919431625">MYISAM</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b167257159431625">MEMORY</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b46662276031625">MRG_MYISAM</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b113084648231625">NDB</strong>, <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b114235696831625">NDBCLUSTER</strong>, or <strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_b73984783431625">PERFORMANCE_SCHEMA</strong>, this attribute can be migrated and will be deleted during the migration.</p>
|
|
<p id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_p1070104916416"><strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_b182316511223">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_screen777222917">CREATE TABLE `public`.`runoob_alter_test`(
|
|
`dataType1` int NOT NULL,
|
|
`dataType2` DOUBLE(20,8),
|
|
PRIMARY KEY(`dataType1`)
|
|
)ENGINE=MYISAM;
|
|
|
|
## A.
|
|
ALTER TABLE runoob_alter_test ENGINE INNODB;
|
|
ALTER TABLE runoob_alter_test ENGINE=INNODB;
|
|
|
|
## B.
|
|
ALTER TABLE runoob_alter_test ENGINE MYISAM;
|
|
ALTER TABLE runoob_alter_test ENGINE=MYISAM;
|
|
|
|
## C.
|
|
ALTER TABLE runoob_alter_test ENGINE MEMORY;
|
|
ALTER TABLE runoob_alter_test ENGINE=MEMORY;</pre>
|
|
<p id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_p12114173518210"><strong id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_b13852256202219">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001819416217__en-us_topic_0000001706224245_en-us_topic_0000001435815985_en-us_topic_0214164405_screen651011366104">CREATE TABLE "public"."runoob_alter_test"
|
|
(
|
|
"datatype1" INTEGER NOT NULL,
|
|
"datatype2" DOUBLE PRECISION,
|
|
PRIMARY KEY ("datatype1")
|
|
)
|
|
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
NOCOMPRESS
|
|
DISTRIBUTE BY HASH ("datatype1");
|
|
|
|
-- A.
|
|
|
|
-- B.
|
|
|
|
-- C.</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>
|
|
|