cast(字段名 as 要转换为的类型)
例如:要将student表中的age字段(原本是int类型)转成string类型,如下:
cast(student.age as string) as age --年龄
impala中转换字段类型,类型强转
最新推荐文章于 2023-01-04 16:48:18 发布
cast(字段名 as 要转换为的类型)
例如:要将student表中的age字段(原本是int类型)转成string类型,如下:
cast(student.age as string) as age --年龄