在当前A列如何判断每一行的内容重复?比如当前一列中,有1000Up以上行的数据,怎么判断有重复的数据?需求是要求行内容唯一

解决方案 »

  1.   

    select distinct * from tablename
      

  2.   

    select A from table1 group by A having count(*)>1结果就是A字段有重复的值
      

  3.   

    select distinct 列名 from 表名distinct可以去掉重复的。
      

  4.   

    我是说在编译器里面怎么写啊?dim一个值?然后赋值?a=select A from table1 group by A having count(*)>1?不行的呀.
      

  5.   

    for i=1 to introws
        for j= introws to i+1 step -1