数据集中加入日期的默认值无效
我用的是oracle数据库,想在jdbc的数据集中加入日期的默认值,sql如下,但是运行却无效。请问如何解决?谢谢
数据集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')