首页 > 数据库技术 > 详细

mysql memory

时间:2014-10-29 21:17:39      阅读:252      评论:0      收藏:0      [点我收藏+]

mysql memory engine

 

创建:

mysql> create table mt engine = memory select * from information_schema.tables;
Query OK, 334 rows affected (1.80 sec)
Records: 334  Duplicates: 0  Warnings: 0

 

限制表的大小

alter table mt max_row = 200 ;

或者

set global max_heap_table_size=1024*1024*1024

 

创建索引

alter table mt add index idx_hash_mt  [using hash(table_name) ];

alter table mt add index idx_btree_mt using btree(table_name);

 

mysql memory

原文:http://www.cnblogs.com/mjorcen/p/4060416.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!