简体   繁体   中英

How to get max interval value?

In the BQ Docs on Interval , it says the max value is:

在此处输入图像描述

Is there a single way to input that value, or is it only possible by adding the three parts together, such as:

SELECT INTERVAL '10000-0' year to month + INTERVAL 3660000 day + INTERVAL 87840000 hour

在此处输入图像描述

You can enter it in in the canonical format using the date unit range YEAR TO SECOND . For example:

SELECT INTERVAL '10000-0 3660000 87840000:0:0' YEAR TO SECOND

在此处输入图像描述

And you can easily see that is the max value then:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM