IT lexicon › Database › Field type

Field type

Database På svenska → Updated: 2026-11-10

A data classification declared in the schema for a single field, specifying the value domain, storage size, and permitted operations.

A field type is the database equivalent of a programming language's data type—it tells the system what kind of data a field can hold. Early database systems offered only a handful of types: integer, numeric (decimal), string (character), date, and possibly boolean. Length was often fixed—a "person name field" might be declared as "40 characters," with each instance occupying exactly that amount of disk space.

Field type was used for validation on insert: attempting to save "abc" into a numeric field would be rejected. It was also used for indexing, sorting, and query optimization. Modern databases are more flexible (dynamic types, variable length, JSON), but the concept remains unchanged since the 1970s.

← Back to the lexicon