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

TO_INT8



Converts a value to INT8 data type.

Syntax

TO_INT8( <expr> )

Examples

SELECT TO_INT8('123'); ┌────────────────┐ │ to_int8('123') │ │ UInt8 │ ├────────────────┤ │ 123 │ └────────────────┘

Was this page helpful?