设为首页 加入收藏

TOP

InnoDB和MyISAM都是密集索引?
2014-11-24 01:24:51 来源: 作者: 【 】 浏览:3
Tags:InnoDB MyISAM 都是 密集 索引

1 以前从一些资料上看到InnoDB的索引是稀疏索引,而MyISAM的索引是密集索引,今天刻意测试了一下,发现竟然不是这样。
2 找时间研究下,mark一下先。
3 mysql> show create table uniq_idG
4 *************************** 1. row ***************************
5 Table: uniq_id
6 Create Table: CREATE TABLE `uniq_id` (
7 `id` int(11) DEFAULT NULL,
8 KEY `id` (`id`)
9 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
10 1 row in set (0.00 sec)
11
12 mysql> show create table same_idG
13 *************************** 1. row ***************************
14 Table: same_id
15 Create Table: CREATE TABLE `same_id` (
16 `id` int(11) DEFAULT NULL,

<script type="text/java script">BAIDU_CLB_fillSlot("771048");
点击复制链接 与好友分享! 回本站首页
<script> function copyToClipBoard(){ var clipBoardContent=document.title + '\r\n' + document.location; clipBoardContent+='\r\n'; window.clipboardData.setData("Text",clipBoardContent); alert("恭喜您!复制成功"); }
分享到: 更多
<script type="text/java script" id="bdshare_js" data="type=tools&uid=12732"> <script type="text/java script" id="bdshell_js"> <script type="text/java script"> var bds_config = {'snsKey':{'tsina':'2386826374','tqq':'5e544a8fdea646c5a5f3967871346eb8'}}; document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js cdnversion=" + Math.ceil(new Date()/3600000)
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇索引的操作 下一篇【数据库学习笔记】(2)JDBC加载..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: