获取sql 时间时分秒

 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