Skip to main content

TO_INT8

将一个值转换为 INT8 数据类型。

语法

TO_INT8( <expr> )

示例

SELECT TO_INT8('123');

┌────────────────┐
│ to_int8('123')
│ UInt8 │
├────────────────┤
123
└────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today