📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

TO_UINT8



Converts a value to UINT8 data type.

Syntax

TO_UINT8( <expr> )

Examples

SELECT TO_UINT8('123'); ┌─────────────────┐ │ to_uint8('123') │ ├─────────────────┤ │ 123 │ └─────────────────┘

Was this page helpful?