字段吧 14个数据吧 10来万条某字段吧 名叫URL目的吧 取不重复的URL信息这URL吧 加了索引SQL吧 这样滴 select * from table group by URL完了吧 老半天没反映
有快法不~

解决方案 »

  1.   

    select a.* from table a
    inner join
    (select url from table group by URL having count(*)=1) b
    on a.url=b.url
      

  2.   

    select distinct URL from table 
      

  3.   

    若表中还存在一个唯一的字段ID,还可以这样
    select * from [table] t
    where not exists(select * from [table] where URL=t.URL and id<t.id)
      

  4.   

    select distinct URL from table 
    试试这个。