我正在研究oracle一致性,在java代码的帮助下将数据加载到缓存中。我需要关于如何在java中以参数的形式接受随机sql查询的帮助,以表的形式显示输出。这是示例sql查询。
select dt,BCR,DCR,RCR,(BCR+DCR+RCR) as sum from (Select to_char(event_date,'DD-Mon-YY') as dt,
case when sum(BCR_DNOM_D) in (0,NULL) then 0 else round((sum(BCR_NOM_D)*100/sum(BCR_DNOM_D)),2) end as BCR,
case when sum(TCASSALL) in (0,NULL) or (sum(TNDROP-cellgen_cell23spare))<0 then 0 else round((sum(TNDROP-cellgen_cell23spare)*100/sum(TCASSALL)),2) end as DCR,
case when sum(RCR_DNOM_D) in (0,NULL) then 0 else (case when round((sum(RCR_NOM_D)*100/sum(RCR_DNOM_D)),2)>100 then 0
else round((sum(RCR_NOM_D)*100/sum(RCR_DNOM_D)),2)end) end as RCR
from EDW_BASE_table A where 1=1
group by event_date
order by event_date)发布于 2017-02-09 02:01:53
Coherence is NOT a RDBMS。Coherence是一个分布在多个服务器上的巨大的分区哈希图,因此它以< Key,Value >的形式存储数据,其中key和value都可以是复杂的java对象并被查询。
您可以很容易地编写一个Invocable类Coherence Node based processing documentation,应用业务逻辑来获得预期的结果。
https://stackoverflow.com/questions/41996276
复制相似问题