MySQL常用命令
日期 / 时间函数
-- 当前日期时间
select now()
select sysdate()
select current_timestamp()
-- 当前日期
select current_date()
-- 当前时间
select current_time()
-- 获取日期部分
select date('yyyy-mm-dd hh:ii:ss')
-- 获取时间部分
select time('yyyy-mm-dd hh:ii:ss')
-- 格式化时间
select date_format('yyyy-mm-dd hh:ii:ss', '%d