原因是:lob字段不能做group by

解决方案 »

  1.   

    那我想对查询后的symptoms进行去重,该怎么做?
      

  2.   


    select distinct to_char(t.symptoms)
      from Illness t
      left join Illness_Dept_Relation d
        on d.illnessguid = t.guid
     where d.categoryguid = 'a6178a0d4b8a0c10fdad8a0783245478'
      

  3.   

    字符太长了,只有先截取,在to_char
    select distinct to_char(substr(t.symptoms,1,4000))||to_char(substr(t.symptoms,4001,4000))
      from Illness t
      left join Illness_Dept_Relation d
        on d.illnessguid = t.guid
     where d.categoryguid = 'a6178a0d4b8a0c10fdad8a0783245478'