Skip to Content
Presto实战
book

Presto实战

by Matt Fuller, Manfred Moser, Martin Traverso
March 2021
Intermediate to advanced
265 pages
6h 50m
Chinese
Posts & Telecom Press
Content preview from Presto实战
134
8
SELECT TIMESTAMP '1983-10-19 07:30:05.123 America/New_York' AT TIME ZONE 'UTC';
_col0
----------------------------
1983-10-19 11:30:05.123 UTC
(1 row)
2.
时间间隔
如表
8-13
和表
8-14
所示,数据类型
INTERVAL
可以是
YEAR TO MONTH
DAY TO SECOND
8-13
YEAR TO MONTH
的时间间隔
YEAR TO MONTH
INTERVAL '<years>-<months>' YEAR TO MONTH
INTERVAL '<years>' YEAR TO MONTH
INTERVAL '<years>' YEAR
INTERVAL '<months>' MONTH
8-14
DAY TO SECOND
的时间间隔
DAY TO SECOND
INTERVAL '<days> <time>' DAY TO SECOND
INTERVAL '<days>' DAY TO SECOND
INTERVAL '<days>' DAY
INTERVAL '<hours>' HOUR
INTERVAL '<minutes>' MINUTE
INTERVAL '<seconds>' SECOND
下面的例子展示了我们介绍过的一些行为:
SELECT INTERVAL '1-2' YEAR TO MONTH;
_col0 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman
Google系统架构解密: 构建安全可靠的系统

Google系统架构解密: 构建安全可靠的系统

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield

Publisher Resources

ISBN: 9787115560056