Create a table as defined in the target table;Add a constraint to the table to ensure that the table data is in the target partition;Alter table source table switch to target table partition NumberThe partition number can be obtained through $
Create a table as defined in the target table;
Add a constraint to the table to ensure that the table data is in the target partition;
Alter table source table switch to target table partition Partition Number
The partition number can be obtained
SQL Example 4–alter
SQL Example 4–alter
SQL Create
/etc/my.cnf
character show create database Test;alter Database Test character set UTF8; alter database Test character set GBK; show create table user1;
Create a table as defined as the target table;
Add constraint to the table to ensure that the data in the table is in the target partition;
Alter table source table switch to target table partition partition code
Where the partition number can be
Sql–alter
Sql–altertable of Contents
Character
Engine
Add Drop
Primary key:
FOREIGN key
Default
Modify Change
Rename generally cannot be changed, the data may be wrong to change
CharacterCreate
As the database data volume continues to grow, some tables need to be converted from normal heap tables to partition tables. There are several different methods for this operation, such as exporting table data, creating a partition table, and then
As the database data volume continues to grow, some tables need to be converted from normal heap tables to partition tables. There are several different methods for this operation, such as exporting table data, creating a partition table, and then
One. Query article
1. Query Oracle Table space usage
Select b.file_id file ID,
B.tablespace_name table Space,
B.file_name Physical file name,
The total number of bytes b.bytes,
(B.bytes-sum (NVL (a.bytes,0))) has been used,
Sum (NVL (a.bytes,0))
In SQL Server, data archiving of super Large tables, using SELECT and Delete commands is very CPU-intensive and disk space, SQL Server must record the corresponding number of transaction logs, and using the switch operation to archive partition
Reference | Reference Manual | Chinese 4 establish InnoDB table
Suppose you have run the MySQL client program as a MySQL test command. In order to create a table in InnoDB format you must specify TYPE = InnoDB in the SQL command:
CREATE TABLE
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.