Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

hive中将string数据转为bigint

使用 CAST 函数将 STRING 转为 BIGINT:

SELECT CAST('00321' AS BIGINT) FROM table;

As a BIGINT it will show on the screen and in delimited text files as 321.

参考:Hive - Converting a string to bigint


版权声明:本文为xieganyu3460原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/xieganyu3460/article/details/82780115
文章导航
←LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
web前端学习/工作笔记(七)→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1