在大查询中将时间连接在一起,但它不允许我使用它。
IF(CAST(TRUNC(timestart/60) AS INT64) <= 12,
CAST(TRUNC(timestart/60) AS INT64),
CAST(TRUNC(timestart/60) AS INT64) - 12) AS hour,
MOD(timestart, 60) AS minutes,
IF(CAST(TRUNC(timestart/60) AS INT64) < 12,
'AM',
'PM') AS timetype,
康卡特
concat(IF(CAST(TRUNC(timestart/60) AS INT64) <= 12,
CAST(TRUNC(timestart/60) AS INT64),
CAST(TRUNC(timestart/60) AS INT64) - 12)+':'+
MOD(timestart, 60)) AS tbegin,
错误:对于参数类型:INT64、STRING 的运算符 + 没有匹配的签名。支持的签名:INT64 + INT64;浮点64 + 浮点64;NUMERIC + NUMERIC 在 [5:10]
如何在 bigquery 中连接时间
Row scheduleid timestart timeduration hour minutes timetype
1 35319 600 60 10 0 AM
2 69682 960 30 4 0 PM
3 186862 1020 30 5 0 PM
4 346371 1020 60 5 0 PM