A method and apparatus for efficiently storing and retrieving data in a
database using index-only tables is disclosed. Storing a row of data in a
database using index-only tables involves storing in a leaf node an index
entry that includes a key value along with all other values in the row of
data. If the row of data exceeds a predetermined size, then a portion of
the row of data is stored in a user specified overflow area. Retrieving a
row of data from an index-only table for a user-supplied key involves
identifying a leaf node for the key, and reading a row of data from the
index entry and any remaining portion from the overflow area when the row
exceeds the predetermined size.