本帖最后由 zhangshuang555 于 2011-10-18 15:55:34 编辑

解决方案 »

  1.   

    select   qishu,id=min(id),title,t_time from test group by qishu,title,t_time
    你这个distinct可以去掉
      

  2.   

    你上个贴14楼回复估计你要
    select id,title,sex,adress,qishu from biao a
    from not exists (
     select 1 from biao
     where qishu  = a.qishu  
     and id < a.id
     )
      

  3.   

    我现在想查询,把期数相同的给去掉,然后,查询所有!可我使用的这个distinct无效!!3楼的,这个语句报错,说from附近有语法错误!