select distinct 图号, 分卡号 from 表

解决方案 »

  1.   

    或者select 图号, 分卡号 from 表 group by 图号, 分卡号
      

  2.   

    select 图号,分卡号 from 表 group by 图号,分卡号
      

  3.   

    select 图号,分卡号 from 表 group by 图号,分卡号
      

  4.   

    select 图号,分卡号 from 表 group by 图号,分卡号

    select distinct 图号, 分卡号 from 表
      

  5.   

    select distinct 图号, 分卡号 from 表
    order by 图号
    distinct 就是过滤重复的记录的
      

  6.   

    select 图号,分卡号 from 表 group by 图号,分卡号

    select distinct 图号, 分卡号 from 表
      

  7.   

    select distinct 图号, 分卡号 from 表
    order by 图号没错这是一个典型的distinct问题