码迷,mamicode.com
首页 > 数据库 > 详细

DATEADD (Transact-SQL)

时间:2019-11-02 15:30:22      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:sig   color   sql   over   link   blank   modified   div   art   

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

 

DATEADD (Transact-SQL)

标签:sig   color   sql   over   link   blank   modified   div   art   

原文地址:https://www.cnblogs.com/chucklu/p/11782410.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!