Numeric data types

Exasol supports approximate and exact numerical data types. The difference when using the approximate data types arises from the possible rounding differences, which can occur due to the type of storage and the way computations are performed. Information losses of this nature do not occur when using exact numeric types because of storage type.

Data type Range (min, max) Precision Note
Exact numeric type

DECIMAL(p,s)

equation Precision, scale: (p,s)

p = precision (optional)

1 ≤ p ≤ 36, default = 18

s = scale (optional)

0 ≤ s ≤ 36, default = 0

sp

Approximate numeric type

DOUBLE PRECISION

~15 digits

About 15 digits can be stored, independent of the scale.

The special element NaN is interpreted as NULL.

The element Infinity is not supported.