采用:
SELECTDATE_SUB( LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH) ), INTERVAL DAY( LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH) ) )-1 DAY) AS firstOfNextMonth,LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH))AS lastOfNextMonth
欢迎分享,转载请注明来源:内存溢出
采用:
SELECTDATE_SUB( LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH) ), INTERVAL DAY( LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH) ) )-1 DAY) AS firstOfNextMonth,LAST_DAY( DATE_ADD(NOW(), INTERVAL 1 MONTH))AS lastOfNextMonth
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)