如何恰当的显示月,日;
select month(current_timestamp());
得出来是7,怎么能生成07????
——解决方案——————–
select DATE_FORMAT(current_timestamp(),’%m’) ;
——解决方案——————–
select date_format(current_timestamp(),’%m’)
——解决方案——————–
select date_format(current_timestamp(),’%m’)
如何恰当的显示月,日;
select month(current_timestamp());
得出来是7,怎么能生成07????
——解决方案——————–
select DATE_FORMAT(current_timestamp(),’%m’) ;
——解决方案——————–
select date_format(current_timestamp(),’%m’)
——解决方案——————–
select date_format(current_timestamp(),’%m’)