Fields

Section: How databases are organized
...Subsection: Fields

Each entity in a collection shares a certain number of characteristics. Each type of fruit might have the following relevant characteristics:

This list of characteristics is called fields. The fields are the characteristics which describe one record. All of the records in the database must have the same fields, but the values of those fields will be different. For example, all of the fruit in the database will have a name, but the names will be different. One record will have a name field with the value 'Bananas', and another record's name field will have the value 'Apples.' A field can be thought of as a detail of a record.

Fields represent units of the computer's memory. Because the computer stores different kinds of information in different ways, each field must have a specified data type. When you create a database, you need to tell the computer what kind of data each field will be so it knows how to store the information.

Data types in databases get a little more specific than you have seen before, because databases have more specialized ways of storing things in memory. Here's a few of the common ones:


Harris, Dey