你的sj是什么,你是不是说每个字段都不重复
select count(distinc field1||field2||...) from table 
//field1||field2||...意思是把各个字段连接为一个字符串

解决方案 »

  1.   

    select count(*) from sj where sj not in
    (select sj from sj group by sj having count(*)>1)
      

  2.   

    select count(a.sj) from (select distinct sj from sj) a
      

  3.   

    /* 没有测试过 */
    select count(*)
    from (
      select sj
      from sj
      group by sj)
      

  4.   

    select count(distinct *) from s
      

  5.   

    select count(sj) as zz from sj where sj in (select distinct(sj) from sj)
    表名是 sj 字段名也是sj 
    那么为什么不能实现呢??