Distinct的用法

1、使用Distinctsql (1)单列去重函数  select distinct dname from blog (2)多列去重code    select distinct bname,bid    from blog 注意:这里是根据bname、bid两个字段一块儿进行去重。blog   (3)与聚合函数联用博客     例:该分类中的博客数(不重复)class  select  t
相关文章
相关标签/搜索