|
So, starting from the bottom of the tree-structure, in the leaf nodes, each index entry occupies a slot or row within the database block. Each row or index entry has 2-3 bytes used for a row header (i.e. flag and lock bytes), and each column within the row has 1 byte for data length, and then the data itself. So, it may look like this:
•Row header (3 bytes)
• Column 0 length (1 byte to store length value of “7”)
• Column 0 data (7 bytes to store a DATE datatype value)
• Column 1 length (1 byte to store length value of “6”)
• Column 1 data (6 bytes to store restricted ROWID value)
Row header 可以为2或者3bytes,那什么情况下? |
|