Variable-Length Records



next up previous
Next: Organization of Records Up: File Organization Previous: Fixed-Length Records

Variable-Length Records

  1. Variable-length records arise in a database in several ways:
  2. We'll look at several techniques, using one example with a variable-length record:

    Account-information is an array with an arbitrary number of elements.

  3. Byte string representation uses the technique of attaching a special end-of-record symbol () to the end of each record. Then we can store each record as a string of successive bytes. (See figure 7.9)

    Byte string representation has several disadvantages:

    So this method is not usually used.

  4. Fixed-length representation uses one or more fixed-length records to represent one variable-length record. Two techniques: The reserved space method requires the selection of some maximum record length. (figure 7.10)



next up previous
Next: Organization of Records Up: File Organization Previous: Fixed-Length Records



Page created and maintained by Osmar R. Zaï ane
Last Update: Tue Oct 31 12:59:25 PST 1995