select DATE_FORMAT(now(),'%Y-%m-%d %T') from dual; 年月日时分秒
select DATE_FORMAT(now(),'%T') from dual;时分秒
select DATE_FORMAT(now(),'%Y-%m-%d %T') from dual; 年月日时分秒
select DATE_FORMAT(now(),'%T') from dual;时分秒
转载于:https://www.cnblogs.com/lanliying/p/8898053.html