DISTINCT & GROUP BY

Select left(convert(varchar(10),f_xstime,120),7) f_xstime from xs_records group by left(convert(varchar(10),f_xstime,120),7) order by f_xstime desc
Select distinct left(convert(varchar(10),f_xstime,120),7) f_xstime from xs_records  order by f_xstime desc
本博客所有文章如无特别注明均为原创。作者:ok12复制或转载请以超链接形式注明转自 成功志
原文地址《DISTINCT & GROUP BY
分享到:更多

相关推荐

发表评论

路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)