|
|
|
|
Consider a file of student records with the following fields:
Field name | Type ---------------+---------------------- ID | integer Name | character(30) Level | character(4) |
The meta data file describing the data file contains:
+----------------------------+-------+-------+ | ID | I | 4 | +----------------------------+-------+-------+ | Name | C | 30 | +----------------------------+-------+-------+ | Level | C | 4 | +----------------------------+-------+-------+ |
Suppose we add a new field "address" to the Student file structure:
Field name | Type ---------------+---------------------- ID | integer Name | character(30) Address | character(30) Level | character(4) |
Then to make the program access the new file format , all we need to do is to add another entry in the meta data:
+----------------------------+-------+-------+ | ID | I | 4 | +----------------------------+-------+-------+ | Name | C | 30 | +----------------------------+-------+-------+ | Address | C | 30 | +----------------------------+-------+-------+ | Level | C | 4 | +----------------------------+-------+-------+ |
|
|
|