Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
7d843c06
提交
7d843c06
authored
12月 15, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Document INTERVAL support in functions like YEAR(), HOUR(), etc.
上级
b0ce854c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
8 行删除
+7
-8
help.csv
h2/src/docsrc/help/help.csv
+7
-7
DateTimeFunctions.java
...rc/main/org/h2/expression/function/DateTimeFunctions.java
+0
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
7d843c06
...
@@ -4600,7 +4600,7 @@ DAYNAME(CREATED)
...
@@ -4600,7 +4600,7 @@ DAYNAME(CREATED)
"
"
"Functions (Time and Date)","DAY_OF_MONTH","
"Functions (Time and Date)","DAY_OF_MONTH","
DAY_OF_MONTH(dateAndTime)
DAY_OF_MONTH(dateAndTime
|interval
)
","
","
Returns the day of the month (1-31).
Returns the day of the month (1-31).
","
","
...
@@ -4624,7 +4624,7 @@ ISO_DAY_OF_WEEK(CREATED)
...
@@ -4624,7 +4624,7 @@ ISO_DAY_OF_WEEK(CREATED)
"
"
"Functions (Time and Date)","DAY_OF_YEAR","
"Functions (Time and Date)","DAY_OF_YEAR","
DAY_OF_YEAR(dateAndTime)
DAY_OF_YEAR(dateAndTime
|interval
)
","
","
Returns the day of the year (1-366).
Returns the day of the year (1-366).
","
","
...
@@ -4658,7 +4658,7 @@ CALL FORMATDATETIME(TIMESTAMP '2001-02-03 04:05:06',
...
@@ -4658,7 +4658,7 @@ CALL FORMATDATETIME(TIMESTAMP '2001-02-03 04:05:06',
"
"
"Functions (Time and Date)","HOUR","
"Functions (Time and Date)","HOUR","
HOUR(dateAndTime)
HOUR(dateAndTime
|interval
)
","
","
Returns the hour (0-23) from a date/time value.
Returns the hour (0-23) from a date/time value.
","
","
...
@@ -4666,7 +4666,7 @@ HOUR(CREATED)
...
@@ -4666,7 +4666,7 @@ HOUR(CREATED)
"
"
"Functions (Time and Date)","MINUTE","
"Functions (Time and Date)","MINUTE","
MINUTE(dateAndTime)
MINUTE(dateAndTime
|interval
)
","
","
Returns the minute (0-59) from a date/time value.
Returns the minute (0-59) from a date/time value.
","
","
...
@@ -4674,7 +4674,7 @@ MINUTE(CREATED)
...
@@ -4674,7 +4674,7 @@ MINUTE(CREATED)
"
"
"Functions (Time and Date)","MONTH","
"Functions (Time and Date)","MONTH","
MONTH(dateAndTime)
MONTH(dateAndTime
|interval
)
","
","
Returns the month (1-12) from a date/time value.
Returns the month (1-12) from a date/time value.
","
","
...
@@ -4715,7 +4715,7 @@ SECOND(dateAndTime)
...
@@ -4715,7 +4715,7 @@ SECOND(dateAndTime)
","
","
Returns the second (0-59) from a date/time value.
Returns the second (0-59) from a date/time value.
","
","
SECOND(CREATED)
SECOND(CREATED
|interval
)
"
"
"Functions (Time and Date)","WEEK","
"Functions (Time and Date)","WEEK","
...
@@ -4739,7 +4739,7 @@ ISO_WEEK(CREATED)
...
@@ -4739,7 +4739,7 @@ ISO_WEEK(CREATED)
"
"
"Functions (Time and Date)","YEAR","
"Functions (Time and Date)","YEAR","
YEAR(dateAndTime)
YEAR(dateAndTime
|interval
)
","
","
Returns the year from a date/time value.
Returns the year from a date/time value.
","
","
...
...
h2/src/main/org/h2/expression/function/DateTimeFunctions.java
浏览文件 @
7d843c06
...
@@ -642,7 +642,6 @@ public final class DateTimeFunctions {
...
@@ -642,7 +642,6 @@ public final class DateTimeFunctions {
v
=
IntervalUtils
.
monthsFromInterval
(
qualifier
,
negative
,
leading
,
remaining
);
v
=
IntervalUtils
.
monthsFromInterval
(
qualifier
,
negative
,
leading
,
remaining
);
break
;
break
;
case
DAY_OF_MONTH:
case
DAY_OF_MONTH:
case
DAY_OF_WEEK:
case
DAY_OF_YEAR:
case
DAY_OF_YEAR:
v
=
IntervalUtils
.
daysFromInterval
(
qualifier
,
negative
,
leading
,
remaining
);
v
=
IntervalUtils
.
daysFromInterval
(
qualifier
,
negative
,
leading
,
remaining
);
break
;
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论