1、日期转换
str_to_date('2016-06-01 06:01:01', '%Y-%m-%d %H');
//例子
select str_to_date(列名, '%Y-%m-%d %H') from a
2、当前日期
select NOW();
1、日期转换
str_to_date('2016-06-01 06:01:01', '%Y-%m-%d %H');
//例子
select str_to_date(列名, '%Y-%m-%d %H') from a
2、当前日期
select NOW();