Home > Database > Mysql Tutorial > mysql分表问题(insert_method的理解)

mysql分表问题(insert_method的理解)

WBOY
Release: 2016-06-06 09:37:55
Original
2359 people have browsed it

mysql

CREATE TABLE account_all (
id int(11) NOT NULL AUTO_INCREMENT ,
name varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
money float NOT NULL ,
tradeDate datetime NOT NULL
PRIMARY KEY (id)
)
ENGINE=MRG_MYISAM
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
UNION=(account_2011,account_2012)
INSERT_METHOD=LAST
ROW_FORMAT=DYNAMIC;

insert_method=last,那是不是将来所有的操作都放到了account_2012中呢,数据量大了不是account_2012会很大,这也没有什么意义啊。实际中是怎么处理呢。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template