提交 646ff160 authored 作者: Thomas Mueller's avatar Thomas Mueller

MySQL compatibility: TIMESTAMPDIFF is now an alias for DATEDIFF.

上级 4ab076a0
...@@ -2941,12 +2941,13 @@ DATEADD('MONTH', 1, DATE '2001-01-31') ...@@ -2941,12 +2941,13 @@ DATEADD('MONTH', 1, DATE '2001-01-31')
" "
"Functions (Time and Date)","DATEDIFF"," "Functions (Time and Date)","DATEDIFF","
DATEDIFF(unitString, aTimestamp, bTimestamp) { DATEDIFF | TIMESTAMPDIFF } (unitString, aTimestamp, bTimestamp)
"," ","
Returns the difference between two timestamps. Returns the difference between two timestamps.
This method returns a long. This method returns a long.
The string indicates the unit. The string indicates the unit.
The same units as in the EXTRACT function are supported. The same units as in the EXTRACT function are supported.
TIMESTAMPDIFF is supported for MySQL compatibility.
"," ","
DATEDIFF('YEAR', T1.CREATED, T2.CREATED) DATEDIFF('YEAR', T1.CREATED, T2.CREATED)
" "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论