赞
踩
目录
group by
distinct
- select * from emp1
- where rowid not in
- (select min(rowid) from emp1)
group by 不仅有分组的功能,同时也可以用于去重,
select * from emp1 group by (#对所有字段进行分组)
distinct的使用直接接在select后面即可
select distinct (#查询字段) from emp1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。