zoukankan      html  css  js  c++  java
  • sql查询重复数据

    select *
    from A
    where id in (select id from A group by id having count(1) >= 2)

    注释:id 为重复的关键字(更换成所需要的)

    开发实例:

    select CarlotName ,CheweiID
    from Position_Car a
    where a.CarlotName in (select CarlotName from Position_Car b group by b.CarlotName having count(1) >= 2)

  • 相关阅读:
    64_q2
    64_q1
    64_p10
    64_p9
    64_p8
    64_p7
    64_p6
    64_p5
    64_p4
    64_p3
  • 原文地址:https://www.cnblogs.com/tuhong/p/5719125.html
Copyright © 2011-2022 走看看