sql bigqueryでJST 1日分のデータを取得

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql bigqueryでJST 1日分のデータを取得相关的知识,希望对你有一定的参考价值。

-- 2017/10/10一日分取る場合
-- timeカラムはunixtime

where _PARTITIONTIME between timestamp('2017-10-10') and timestamp('2017-10-11')
and  cast(time as timestamp) between timestamp('2017-10-10 00:00:00 +09:00') and timestamp('2017-10-10 23:59:59 +09:00')

以上是关于sql bigqueryでJST 1日分のデータを取得的主要内容,如果未能解决你的问题,请参考以下文章