select distinct * from table

解决方案 »

  1.   

    select distinct ddwid , ddwcode, ddwname from tablename
      

  2.   

    select distinct ddwid, ddwcode, ddwname
    from 表
      

  3.   

    select * from table group by ddwid,ddwcode,ddwname如果表中有主键:
    select * from table aa where not exists(select 1 from table bb where aa.主键<bb.主键)
      

  4.   

    select distinct * from table或者select * from table aa where not exists(select 1 from table bb where aa.主键<bb.主键)
      

  5.   

    select distinct ddwid, ddwcode, ddwname
    from table
      

  6.   

    select distinct * from 表
      

  7.   

    select * from 表 tem where 主键=(select 主键 from 表 where ddwid=tem.ddwid and ddwcode=tem.ddwcode and ddwname=tem.ddwname)
      

  8.   

    select * from 表 tem where 主键=(select 主键 from 表 where ddwid=tem.ddwid and ddwcode=tem.ddwcode and ddwname=tem.ddwname)