Answers for "how to add two days to a date sql"

SQL
1

sql add days to date

//Returns Date time
//Takes where to add (as in year, month, day, etc) to
//Takes how much to add
//Takes a datetime in some different formats
DATEADD(day, 1, '2017/08/25')
Posted by: Guest on March-23-2021
0

add two days to current date in sql when creating tables

CREATE TABLE YourTableName
(
Subscriber INT PRIMARY KEY,
IssueDate DATETIME,
ExpireDate AS DATEADD(DAY, 30, IssueDate)
)
Posted by: Guest on October-05-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language