MySQL FAQs
FAQs Categories
Client Server Commands
Database Structure
Table Types or Storage Engines
Indexes
SQL Statements
Table Joins
Funtions and Operators
Tricky Select Queries
Speed Up Queries
Data Back Up
General Questions
Errors
1PLs Company - #1Payday.Loans Agency - Loans online and near me $100-$2500 (Same Day)
Powered by MySQL
 
Home / Table Types or Storage Engines / Question No: 161

How to convert a table from one type to another in MySQL?

I need to convert my existing table from one type to another. Can you explain, how to convert a table from one type to another in MySQL?

Answer No: 161

MySQL provides ALTER TABLE statement to alter the table structure. To convert a table from one type to another, you can use this statement. Take one of the following two examples, both do the same. However, TYPE option is deprecated now:

ALTER TABLE table_name ENGINE = MYISAM;
ALTER TABLE table_name TYPE = MRG_MYISAM;

Related MySQL FAQs to the Above FAQ

How-to-get-storage-engines-available-on-MySQL-server How to get storage engines available on MySQL server?

What-is-default-table-type-of-MySQL What is default table type of MySQL?

How-to-change-the-default-storage-engine-of-MySQL How to change the default storage engine of MySQL?

What-is-the-fastest-storage-engine-in-MySQL What is the fastest storage engine in MySQL?

What-are-transaction-safe-tables-and-not-transaction-safe-tables-in-MySQL What are transaction-safe tables and not transaction-safe tables in MySQL?

About FAQs: Recently Added FAQs

About MySQL FAQs: Site Map | Bookmark Us | Recommend this Site to Your Friend | Contact Us

Useful Links: Wikipedia.org | Oracle.com | w3schools.com | www.php.net | Github.com

© 2023  www.mysqlfaqs.net
All rights reserved.