select distinct * into #t from yourtable
go
delete yourtable
go
insert yourtable select * from #t
go
drop table #t
go

解决方案 »

  1.   

    delete from yourtable as A 
     where billNo <> (select min(billNo) from yourtable 
                        where extension = A.extension 
                          and billdate = A.billdate
                          and billtime = A.billtime
                          and duration = A.duration)
      

  2.   

    select distinct * from tablename
      

  3.   

    选出非重复行
    这样即可:
    select distinct * from tablename
      

  4.   

    select distinct * from tablename