[英]I have time 00:07:35.000000 in string format. How to change this to time format in bigquery?
SELECT ride_time, CAST (ride_time as INTERVAL) as ride_time_hr
ride_time -> str 00:07:35.000000 ride_time -> 海峡 00:07:35.000000
I am expecting 00:07:35我期待00:07:35
You can use the PARSE_TIME
function:您可以使用
PARSE_TIME
function:
SELECT ride_time, PARSE_TIME("%H:%M:%E*S", ride_time) as ride_time_hr
Output: Output:
More info:更多信息:
PARSE_TIME
: https://cloud.google.com/bigquery/docs/reference/standard-sql/time_functions#parse_time PARSE_TIME
: https://cloud.google.com/bigquery/docs/reference/standard-sql/time_functions#parse_time
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.