select DISTINCT DATE_FORMAT(CreateTime,'%m-%d') CreateTime from wsd_bag_log where
LinkId='1' GROUP BY CreateTime ORDER BY CreateTime asc
1.其中 distinct 是mysql中去掉重复的意思
2.DATE_FORMAT是mysql 中转换时间类型的含义 ,后面我们可以凭借规定的模式
select DISTINCT DATE_FORMAT(CreateTime,'%m-%d') CreateTime from wsd_bag_log where
LinkId='1' GROUP BY CreateTime ORDER BY CreateTime asc
1.其中 distinct 是mysql中去掉重复的意思
2.DATE_FORMAT是mysql 中转换时间类型的含义 ,后面我们可以凭借规定的模式