Discover mysql create table from existing table, include the articles, news, trends, analysis and practical advice about mysql create table from existing table on alibabacloud.com
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
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
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
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
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
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
Document directory
MySQL table replication
MySQL table modification
Delete a MySQL table
I didn't want to write this section, because it was very troublesome. There were many examples, which were representative, and I knew everyone was bored.
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.