DATEADD (Transact-SQL)

偶尔善良 提交于 2019-12-03 07:09:57

DATEADD (Transact-SQL)

This function adds a specified number value (as a signed integer) to a specified datepart of an input date value, and then returns that modified value.

See Date and Time Data Types and Functions (Transact-SQL) for an overview of all Transact-SQL date and time data types and functions.

DATEADD (datepart , number , date ) 

datepart
The part of date to which DATEADD adds an integer number. This table lists all valid datepart arguments.

day的缩写是dd或d

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!