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

mysql分表问题(insert_method的理解)

WBOY
WBOYOriginal
2016-06-06 09:37:552358browse

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会很大,这也没有什么意义啊。实际中是怎么处理呢。

Statement:
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