数据库中每分钟写入一条数据。我写了一条语句,目的是查询当日最接近8点的那条数据,如下:
select * from(select * from SZS_SS_ZSJ where zkdm='CFP601_P401' and ljll is not null and cjsj<trunc(sysdate,'dd')+8/24 order by cjsj desc) where rownum<=1;
请教大侠如何修改为显示这个月每天的最接近8点的所有数据?
select * from(select * from SZS_SS_ZSJ where zkdm='CFP601_P401' and ljll is not null and cjsj<trunc(sysdate,'dd')+8/24 order by cjsj desc) where rownum<=1;
请教大侠如何修改为显示这个月每天的最接近8点的所有数据?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货