方法一:group by (取最小的id)select min(id) id,T from Table_1 group by T
方法二:union (不需要id)select T from Table_1 where 1=0unionselect T from Table_1
方法三:DISTINCT
select DISTINCT T from Table_1
posted @ 2015-12-31 09:33 eyye的眼睛 阅读(277) 评论(0) 收藏 举报
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。