- MySQL 8 for Big Data
- Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
- 213字
- 2021-08-20 10:06:11
Merge
This storage engine is also known as a MRG_MyISAM storage engine. This storage engine merges a MyISAM table and creates it to be referred to a single view. For a merge table, all columns are listed in the same order. These tables are good for data warehousing environments.
The following example shows you how to create merge tables:
mysql> CREATE TABLE user1 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name CHAR(20)) ENGINE=MyISAM;
mysql> CREATE TABLE user2 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,name CHAR(20)) ENGINE=MyISAM;
mysql> INSERT INTO user1 (name) VALUES ('abc'),('xyz');
mysql> INSERT INTO user2 (name) VALUES ('def'),('pqr');
mysql> CREATE TABLE user (id INT NOT NULL AUTO_INCREMENT,name CHAR(20), INDEX(id))ENGINE=MERGE UNION=(user1,user2);
The table is used to manage log-related tables, generally. You can create different months of logs in separate MyISAM tables and merge these tables using the merge storage engine.
MyISAM tables have storage limit for the operating system but a collection of MyISAM (merge) tables do not have storage limits. So using a merge table would allow you to split data into multiple MyISAM tables, which can help in overcoming storage limits.
With the MERGE table, it is difficult to do partitioning hence it is not supported by MERGE tables and we cannot implement partition on MERGE table or any MyISAM table.
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- 自制編譯器
- Learning C++ Functional Programming
- Unity 2020 Mobile Game Development
- Programming ArcGIS 10.1 with Python Cookbook
- 三維圖形化C++趣味編程
- Python Data Analysis Cookbook
- Java系統化項目開發教程
- 第一行代碼 C語言(視頻講解版)
- OpenResty完全開發指南:構建百萬級別并發的Web應用
- 0 bug:C/C++商用工程之道
- Advanced Express Web Application Development
- Raspberry Pi Robotic Projects(Third Edition)
- Illustrator CC平面設計實戰從入門到精通(視頻自學全彩版)
- 自學Python:編程基礎、科學計算及數據分析(第2版)