Want to know create new table from existing table in mysql? we have a huge selection of create new table from existing table in mysql information on alibabacloud.com
1. Create a temporary tableA temporary table is a table, used to temporarily save some dataCharacteristics:Visible only to the user who created the temporary table ;When the session ends, MySQL automatically deletes the temporary table.The core of
SQL creates a new table from an existing table, the new table structure is the same as the existing table structure, but not the data in the existing table!The execution of DML statements depends on the database type:SQLITE-----Copy table structure
MySQL table sharding Methods: MySQL
I. Let me explain why Table sharding is required.
When a piece of data reaches several millions, it takes more time for you to query the data at a time. If there is a joint query, I think it may die there. The
MySQL creates a table and creates a . frm file to save the table and column definitions. The index is stored in one . MYI (Myindex) and the data is stored in the . MYD (MYData) file extension. First, using Show/describe statement to display the data
When creating a table, MySQL creates a. frm file to save the table and column definitions. Indexes are stored in a file with the. MYI (MYindex) Extension and data is stored in a file with the. MYD (MYData) extension.
1. Use the SHOW/DESCRIBE
The following articles mainly describe the creation and deletion of MySQL databases, as well as the detailed parsing of indexes and changing actual table statements. If you are also popular with MySQL databases, you can click the following article
database table Basic Operations
After thinking, finally the name of the blog changed to the basic operation of the database table, formerly called the SQL statement Daquan, feeling with "Daquan" this noun is too big, and the
SQL Study Notes (14) ------------ data table, SQL statement for creating a data table
Operations on Data TablesBasic Database OperationsWith MySQL, you can choose between the three basic database table formats (version 3.23. When creating a table,
MySQL when creating a table, create a . frm file to save the table and column definitions. The index is stored in a . MYI (myindex) file extension and data is stored in the . MYD (MYData) extension in the file. First, using Show/describe statement
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.