要获得表中每一个时间time对应的f_value的最大值,该sql应该如何实现 SELECT id, f_value, TIME FROM test a WHERE f_value = ( SELECT MAX( f_value ) FROM test b WHERE b.time = a.time )
--创建新增本地数据库的存储过程 create or replace procedure pro_electric_record as begin insert into electric_meter_record(id,basestation_id,name,meter_number,createtime) select sys_guid(),substr(s.sname,0,36),s.sname,s.svalue,sysdate from rtdbvs s where s.sname li