• 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

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

  • 相关阅读:
    ASP.NET应用程序与页面生命周期
    Git源码管控规范
    redis cluster
    jwt token and shiro
    openapi and light-4j
    ps 证件照制作
    js eval 动态内容生成
    pdnovel 看书 读书 听书
    crawler 使用jQuery风格实现
    websocket聊天体验(二)
  • 原文地址:https://www.cnblogs.com/cnmarkao/p/4157961.html
Copyright © 2020-2023  润新知