mysql 将时间格式化为 yyyy-MM-dd HH:mm:ss

select DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s');

posted @ 2022-03-01 09:50  温故纳新  阅读(7901)  评论(0编辑  收藏  举报