← Back to Glossary

data type

In the context of databases and programming, a data type defines the nature of data that can be stored in a specific field or variable.

In the context of databases and programming, a data type defines the nature of data that can be stored in a specific field or variable. It determines what kind of values are allowed and what operations can be performed on that data. Common data types include integers for whole numbers, floating-point numbers for decimals, strings for text, and booleans for true/false values. More complex data types like dates, times, and arrays are also widely used.

In DuckDB, you can work with a variety of data types. For example, you might define a table with different data types like this:

Related terms