2014年7月6日
摘要: 1.optimize table2.analyze table3.尽量将列声明为NOT NULL4.Mysql只用前缀索引,避免在已有索引前缀上再建立索引,如index(a,b)上不要再建立index(a)5.索引装入Key Cache Load index into cache table1;6.... 阅读全文
posted @ 2014-07-06 00:54 pushStack 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 索引类型1.普通索引create index index_name on t_user(name(12));2.唯一索引:允许表中存在多条记录为空的记录create unique index index_name on t_user(name(12));3.主键索引:不允许有空值create tab... 阅读全文
posted @ 2014-07-06 00:30 pushStack 阅读(899) 评论(0) 推荐(0) 编辑