[mysql] innodb redundant行格式

博客首页 » mysql innodb redundant行格式

发布于 21 Feb 2015 09:41
标签 blog
[mysql-innodb]4-3-row-structure-format-compact.png
http://7vzpyg.com1.z0.glb.clouddn.com/[mysql-innodb]4-3-row-structure-format-compact.png
  • 字段长度列表 1~2bytes 逆序
  • 记录头信息 record header 6bytes
    • 1bit 未知
    • 1bit 未知
    • 1bit deleted_flag 删除标志
    • 1bit min_rec_flag 1最小记录
    • 4bit n_owned 记录数
    • 13bit heap_no 索引堆中该记录的排序记录
    • 10bit n_fields 列数量
    • 1bit 1byte_offs_flag 便宜列表为1字节还是2字节
    • 16bit next_recorder 页中下一记录相对位置
  • 列n
    • 对于char的null需要占用空间,varchar不用

本页面的文字允许在知识共享 署名-相同方式共享 3.0协议和GNU自由文档许可证下修改和再使用,仅有一个特殊要求,请用链接方式注明文章引用出处及作者。请协助维护作者合法权益。


系列文章

文章列表

  • mysql innodb redundant行格式

这篇文章对你有帮助吗,投个票吧?

rating: 0+x

留下你的评论

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License