Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()

$
0
0
Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG() Randolph West Posted on 21 November 2018 Comments Last time we looked at adding or subtracting date parts using the DATEADD() T-SQL system function. This week we see how to calculate the difference between two date-time values using DATEDIFF() and DATEDIFF_BIG(). The syntax for both functions is identical: [crayon-5bf59aaf0bb63225710212/] The only functional difference between them is that the DATEDIFF_BIG() returns values as a [...]

The post Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG() appeared first on Born SQL .


Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()
Born SQL with Randolph West

Randolph West solves technology problems with a focus on SQL Server and C#. He is a Microsoft Data Platform MVP who has worked with SQL Server since the late 1990s. When not consulting, he can be seen acting on the stage and screen or doing voices for independent video games.


Viewing all articles
Browse latest Browse all 3160

Trending Articles