Skip to main content

TO_INT8

Converts a value to INT8 data type.

Syntax​

TO_INT8( <expr> )

Examples​

SELECT TO_INT8('123');

┌────────────────┐
│ to_int8('123') │
│ UInt8 │
├────────────────┤
│ 123 │
└────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today