record
Quick Summary
In computing, a record is a heterogeneous collection of data, meaning it can store different types of information together. Think of it like a structured entry in a database, where each piece of information (a "field") has a specific name and type, such as a person's name (text), age (number), or status (true/false).1
Records are fundamental data structures that help organize information efficiently. They allow programmers to group related data items, like all the details for a single employee (name, title, salary), into one unit. This contrasts with an "array," which stores a collection of the same data type. Databases use records, often organized into tables, to store and retrieve vast amounts of information rapidly.12
Ask Britannica AI about this topic
Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.
- computer programming languageCOBOL
…data, and COBOL introduced the record data structure for such tasks. A record clusters heterogeneous data—such as a name, an ID number, an age, and an address—into a single unit. This contrasts with scientific languages, in which homogeneous arrays of numbers are common. Records are an important example of “chunking”…
Read More…data, and COBOL introduced the record data structure for such tasks. A record clusters heterogeneous data—such as a name, an ID number, an age, and an address—into a single unit. This contrasts with scientific languages, in which homogeneous arrays of numbers are common. Records are an important example of “chunking”…
Read More - computer programming languageData structures
…collection of data, and the record, a heterogeneous collection. An array may represent a vector of numbers, a list of strings, or a collection of vectors (an array of arrays, or mathematical matrix). A record might store employee information—name, title, and salary. An array of records, such as a table…
Read More…collection of data, and the record, a heterogeneous collection. An array may represent a vector of numbers, a list of strings, or a collection of vectors (an array of arrays, or mathematical matrix). A record might store employee information—name, title, and salary. An array of records, such as a table…
Read More