Hello.
Suppose a person chose that his news will be visible for 3 months.
When adding news, the start date of the show is written in the format. 0000-00-00 00:00:00
The number of months is written in integers.
I can not understand how in the request to the current date I add a certain number of months to make up a condition. The main thing is that not just the days be taken into account, but also the time when the news was added.
I would be grateful for the help.
+ INTERVAL N MONTH: SELECT UTC_TIMESTAMP () + INTERVAL 3 MONTH Instead ofMONTHcan beDAY,WEEKetc - BOPOH