|
|
+------------------------+-------+-------+
| name of field | type | size |
+------------------------+-------+-------+
24 characters 4 chars int
|
Example 1: +----------------------------+-------+-------+ | ID | C | 10 | +----------------------------+-------+-------+ describes the following data field: Field name is "ID" and the type is char[10] |
|
Note:
|
|
Consider a file of student records with the following fields:
Field name | Type
---------------+----------------------
ID | integer
Name | character(30)
Level | character(4)
|
We would use a meta data file containing the following entries to describe the file:
+----------------------------+-------+-------+ | ID | I | 4 | +----------------------------+-------+-------+ | Name | C | 30 | +----------------------------+-------+-------+ | Level | C | 4 | +----------------------------+-------+-------+ |
Consider a file of employee records with the following fields:
Field name | Type
---------------+----------------------
SSN | character(9)
Name | character(30)
department | character(10)
salary | integer
|
We would use a meta data file containing the following entries to describe the file:
+----------------------------+-------+-------+ | SSN | C | 9 | +----------------------------+-------+-------+ | Name | C | 30 | +----------------------------+-------+-------+ | department | C | 10 | +----------------------------+-------+-------+ | salary | I | 4 | +----------------------------+-------+-------+ |