Skip to main content

TO_UINT8

Converts a value to UINT8 data type.

Syntax

TO_UINT8( <expr> )

Examples

SELECT TO_UINT8('123');

┌─────────────────┐
│ to_uint8('123')
├─────────────────┤
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