我要实现的功能是:
table1
a,b,c,d,e为字段名
------------
a  b  c   d   e1  2  4   5   7
1  2  4   5   7
1  2  4   5   7
查询结果为:
---------------
a  b  c   d   e
1  2  4   5   7

解决方案 »

  1.   

    select distinct * from table1
      

  2.   

    select distinct * from table1
      

  3.   

    select distinct * from 表名
      

  4.   

    我要实现的功能是:
    table1
    a,b,c,d,e为字段名
    ------------
    a  b  c   d   ed  2  4   s   7
    f  2  f   e   s
    d  2  c   5   7
    查询结果为:
    ---------------
    a  b  c   d   e
    d  2  4   s   7
      

  5.   

    ??完全是2种问题用select top 1 * from table1 可以得到你的结果此外你凭什么去掉了
    f  2  f   e   s
    d  2  c   5   7
    这2行?
      

  6.   

    select * from tablename where 字段2<>(select top 1 字段2 from tablename)
      

  7.   

    select a,b,c,d,e from (
    select a,b,c,d,e,count(*) as  fild1 from tablename
    group by a,b,c,d,e) table1
    where fild1>1
      

  8.   

    参考:
    http://blog.csdn.net/ningoo/archive/2005/01/07/244503.aspx