Database Fields: Definition & Types

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: What are Database Objects? - Definition & Examples

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:04 Overview of Database Fields
  • 1:05 Example
  • 2:15 Database Field Types
  • 4:24 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Speed Speed Audio mode

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Sudha Aravindan

Sudha has a Doctor of Education degree in math education and is currently working as a Information Technology Specialist.

Database fields are the containers that store pieces of information or data in database tables. In this lesson, we'll learn about database fields and explore some of the common types of database fields.

Overview of Database Fields

A database is a collection of tables. Each table has fields, or containers, to hold the data, and each table contains rows of data, which are also called records.

Consider a student table that stores data about students in a class, like this one here:

Student Table

student-id student-name student-email
054 Joe
055 Kate
056 Laura
057 Mike

As we can see, the fields in this table (which are the containers that hold the data) are:

  • Student-id
  • Student-name
  • Student-email

This table has 4 rows of data. Each row is a database record. A record for this table contains all the information about one student. Each of the columns of the table, (student-id, student-name, and student-email) are the database fields. In this table, record 1 is data about the student Joe, his student ID is 054, and his email is

Each database field defines a unique piece of data. A table contains only one field of each kind. For example, the student table will have only one field each for student ID, student name, and student email. There will not be two student ID fields, for instance.


The fields in the student table can be described as follows:

  • Student-id: is an ID assigned to each of the students
  • Student-name: is the first and last name of each student
  • Student-email: is the email address of each student

The database field names are descriptive of the data they contain. When you see the field 'student-id' you can tell that this field contains the ID of each student. And when you see the 'student-email' field, you can tell that this field contains the email address of each student.

In the database table, each field is in a column. In the above example, 'student-id' is in the first column, 'student-name' is in the second column, and 'student-email' is in the third column.

When a database table is created, the fields have to be determined to help decide what kind of data will be stored in the table. This is like saying that when a house is built, you have to decide how many rooms there will be and what the function of each room is. For example, you would have a kitchen where you do your cooking, a living room where you relax, and so on. Similarly, in the student table, you define a field, or container, called 'student-id' to save the student IDs of all students; you define a field, or container, called 'student-name' to save the names of all students; and so on.

Database Field Types

In addition to defining the fields for a database table, you also have to specify what kind of data each field will contain. Supposing you are packing for a move, and you have all your furniture and household goods in boxes. When packing the kitchen for instance, you would have a box for glassware, another box for silverware and cutlery, and yet another box for dishes. In the same way, when you create a database table for student data, you need to define the types of data in each field. For example the 'student-name' field will contain only characters from the alphabet. The 'student-id' field in this table has only numeric or number values, such as 054, 055, etc.

Here are some common types of database fields. We'll look at the datatype and pair it with the appropriate definition:

To unlock this lesson you must be a Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account