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

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

  • 相关阅读:
    javascipt加强对类的理解
    PHP(http协议)相关应用知识
    javascipt对象成员函数
    PHP(http协议)防盗链技术(小练习)
    javasricpt二维数组矩形转置
    PHP二维数组矩形转置
    javascipt冒泡排序
    用vim解压各种格式
    转载:【菜鸟专用】使用LaTeX轻松撰写精美个人简历
    Ruby的gets和gets.chmop
  • 原文地址:https://www.cnblogs.com/cnmarkao/p/4157961.html
Copyright © 2011-2022 走看看