使用 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.
版权声明:本文为xieganyu3460原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
使用 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.