Answers for "Update the date in the database with +1 month"

SQL
0

Update the date in the database with +1 month

---------MySQL ;

UPDATE users
SET date = DATE_ADD(date, INTERVAL 1 month )


---------SQL server ;


UPDATE users
SET date = DATEADD(MONTH, 1, date)

------- Oracle ;

UPDATE users
SET date = ADD_MONTHS(date, 1)
Posted by: Guest on December-17-2020

Code answers related to "Update the date in the database with +1 month"

Code answers related to "SQL"

Browse Popular Code Answers by Language