Glossary term

Flat File Databases

FMore terms under F

A flat-file database stores records in a simple file, often as rows with the same set of fields. A product list saved as CSV—a text file with values separated by commas—is one example.

A small catalog might have a row for each product, with its code, name and price. A program reads the file to find the product it needs.

That can work for a small, predictable job. It becomes harder when several programs need to change the file at once. If two programs each save changes from an older copy, one can overwrite the other’s work unless the software handles that carefully.

More fully featured database software can manage related records and coordinate changes. The difference is in how the information is managed: even a database such as SQLite can store its information in a single file.

Sources

← Browse Glossary: F