日期:2014-05-19  浏览次数:20887 次

~~~sql 小问题(在线等!)
table1

字段:     username   userpass   type

                sun               sun           yy
                sun               sun           yy
                po                 po             uu
                po                 po             uu

如何将内容重复的列合为一列
实现后:
                sun             sun               yy
                po               po                 po

------解决方案--------------------
select distinct(*) from table1
------解决方案--------------------
select distinct * from table1