想实现将数据去掉重复数据后输出总数。请兄弟姐妹们给个例子

解决方案 »

  1.   

    delete from  t where rowid!=(select min(rowid) from s where t.key=s.key) ;select count(*) from t
      

  2.   

    select count(1)
    from
    (
       select distinct xxx_field from your_xx_table
    )
      

  3.   

    select count(*) from ( seleet *  from  t where rowid=(select min(rowid) from s where t.key=s.key) )如果数据量不大的话
      

  4.   

    select count(distinct 字段) from table
      

  5.   

    能把自己的问题清晰的告诉别人是件很难的事.上传MDB文件 www.access911.net/csdn或加入QQ群  19055578  晚19:00 - 24:00在线
    == 思想重于技巧 ==
      

  6.   

    select count(distinct 字段) from table支持5楼
      

  7.   

    select count(distinct 字段) from table 支持5楼