日期:2014-05-16  浏览次数:20849 次

取得月份的函数??
select month(current_timestamp()); 得出来使7,怎么能生成07????

------解决方案--------------------
select DATE_FORMAT(current_timestamp(),'%m')
------解决方案--------------------
select format(current_timestamp(),'%m')
------解决方案--------------------
select date_format(current_timestamp(),'%m')
------解决方案--------------------
select date_format(current_timestamp(),'%m')