得到【所有标题不重复的帖子】

解决方案 »

  1.   

    比如。。
    ,select * from table where +条件。但我还要加个条件限制:就是其中的一个文本字段(query_text)要distinct query_text,就是去除重复的。能给出个大概就行了,谢谢
      

  2.   


    select a.*
    from a
    where title not in
    (
    select title 
    from a
    group by query_text
    having count(*)>1
    )
      

  3.   

    select title from (
    SELECT count(title) AS c, title
    FROM 帖子数据表
    GROUP BY title) as tmpTable where c<2
      

  4.   

    select query_text from ( 
    SELECT count(query_text) AS c, query_text
    FROM table 
    GROUP BY query_text) as tmpTable where c <2