how to find out number of days in month in mysql

前端 未结 7 2016
北恋
北恋 2020-12-14 15:18

I have several dates in mysql tables, using those dates I need to find out the number of days in the month. Suppose i have 2003-02-05 it should return 28. for example

<
相关标签:
7条回答
  • 2020-12-14 15:53

    Use following statement

    SELECT DAY(LAST_DAY(now()))
    
    0 讨论(0)
提交回复
热议问题