zoukankan      html  css  js  c++  java
  • SQL Server select count(distinct *)

    测试表:student

    select * from studnet;

    image

    select count(distinct name) from student;
    image
    select count(distinct *) from student;

    image

    这样是有错误的,可以变通的实现
    select count(*) 
    from
    (select distinct * from student) st;

    image

    此路不通,我走另一条路!

  • 相关阅读:
    C语言遍历文件夹里所有文件【转】
    davinci有用的连接
    VC中关于release和debug的区别【转】
    fprintf、printf、sprintf、fscanf、scanf、sscanf 格式化输入输出【转】
    达芬奇数字媒体片上系统的架构和 Linux 启动过程【转】
    shell执行的特殊变数
    解决ubuntu10插入耳机还有外音的问题
    VMware Workstation安装ubuntu10.10【图解】
    使用 WebPlayer9播放器 使得my_vod_caching文件夹巨大系统空间急剧减少
    使用指针时的“陷阱”
  • 原文地址:https://www.cnblogs.com/cnmarkao/p/4157961.html
Copyright © 2011-2022 走看看