死神手机壁纸高清 1920:急求一条mysql查询语句..

来源:百度文库 编辑:高考问答 时间:2024/04/30 10:23:45
怎样去除表中某一列中的重复值
如表 a
a(列) b(列) c(列)
1 123 789
2 234 678
3 123 333
要求返回结果为
b c
123 789
234 678
小弟新手,恳请指点

select distinct a,b from tablename

select * from tablename where 1 group by a