我的mysql字段为:时间,作者,内容.
因为作者是不一样的.
想按作者,分组列表出,时间大于2008-01-01的内容.
sql语句怎么写啊.

解决方案 »

  1.   

    将记录及正确结果贴出来看看你要达到select 作者 from tt where 时间>'2008-01-01' group by 作者 
      

  2.   

    将记录及正确结果贴出来看看
    select * from tt where 时间>'2008-01-01'
      

  3.   

    select 内容 from tt where 时间>'2008-01-01' group by 作者 
      

  4.   


    select 内容,作者 from tt where 时间>'2008-01-01' group by 作者 limit 100
      

  5.   

    select 作者,内容 from tt where 时间>'2008-01-01' group by 作者,内容
      

  6.   

    select 作者,内容 
    from yourTable
    where 时间>'2008-01-01' 
    order by 作者,内容希望能中。
    问题说明越详细,回答也会越准确!参见如何提问。(提问的智慧