常用sql,mark一下

1.去重复

select distinct table.a from table

2.分类统计

select count(*),table.a from table group by table.a

 

posted @ 2016-01-11 18:08  dajiede  阅读(174)  评论(0编辑  收藏  举报