oracle截取时间“yyyy-MM-dd HH:mm:ss”为日期“yyyy-MM-dd”

2025-01-06 09:57:02
推荐回答(4个)
回答1:

convert(char(10),gather_time,120) 是sqlserver的转换语句
oracle里面应该是:
SELECT trunc(gather_time), max(temper)
FROM t_buss_insul_curr_leak l
GROUP BY trunc(gather_time)

回答2:

group by TO_CHAR(gather_time,'YYYY-MM-DD') 搞定

回答3:

回答4:

好像是substring()方法就行了,这方法网上多的呢