convert(char(10),gather_time,120) 是sqlserver的转换语句oracle里面应该是:SELECT trunc(gather_time), max(temper) FROM t_buss_insul_curr_leak lGROUP BY trunc(gather_time)
group by TO_CHAR(gather_time,'YYYY-MM-DD') 搞定
额
好像是substring()方法就行了,这方法网上多的呢