示例:
代码:
SELECT
create_time,
YEAR ( create_time ),
MONTH ( create_time ),
DAY ( create_time ),
HOUR(create_time),
MINUTE(create_time),
SECOND(create_time)
FROM
sys_role_menu
GROUP BY
YEAR ( create_time ),
MONTH ( create_time ),
DAY (create_time),
HOUR(create_time),
MINUTE(create_time),
SECOND(create_time)