adding months to a date SQL

后端 未结 3 1106
离开以前
离开以前 2021-01-25 18:21

I am trying to add months to an existing date in SQL. The new column displayed will have a followup column instead of a days column. Im getting an error in the select statement.

3条回答
  •  离开以前
    2021-01-25 18:42

    This can be used to add months to a date in SQL:

    select DATEADD(mm,1,getdate())
    

    This might be a useful link.

提交回复
热议问题