数据集sql如下:
select to_char(create_date,'yyyy-mm-dd') as create_date, region_id as region_id ,sum(alarm_result_id) as alarm_count from alarm_result_info
where create_date>=to_date('${iif(start_time,2000-01-10)}', 'yyyy-mm-dd') and
create_date<=to_date('${iif(start_time,3000-01-10)}', 'yyyy-mm-dd')
group by create_date,region_id order by create_date desc
where部分改成这样也不行:
where create_date>=to_date('${iif(start_time,2000-01-10 12:20:20)}', 'yyyy-mm-dd HH:MI:SS') and
create_date<=to_date('${iif(start_time,3000-01-10 12:20:20)}', 'yyyy-mm-dd HH:MI:SS') 作者: admin 时间: 2011-2-23 12:39