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

TO_INT16



Converts a value to INT16 data type.

Syntax

TO_INT16( <expr> )

Examples

SELECT TO_INT16('123'); ┌─────────────────┐ │ to_int16('123') │ ├─────────────────┤ │ 123 │ └─────────────────┘

Was this page helpful?