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

如何恰当的显示月,日;
select month(current_timestamp()); 
得出来是7,怎么能生成07????

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