Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
If one finds where the past number of months equals the past number of days like this, select distinct DATE_SUB(now(), INTERVAL 92 DAY),DATE_SUB(now(), INTERVAL 3 MONTH) The numbers that are curre...
Question
mysql
#1: Initial revision
How long in days is a MONTH in MySQL?
If one finds where the past number of months equals the past number of days like this, ``` select distinct DATE_SUB(now(), INTERVAL 92 DAY),DATE_SUB(now(), INTERVAL 3 MONTH) ``` The numbers that are currently returned are, - 1 month = 31 days - 2 month = 62 days - 3 month = 92 days - 4 month = 123 days - 5 month = 153 days - 6 month = 184 days **Is MySQL rounding the number of days or is it taking into account the number of days in a particular month?**