清空表用trancate的代码如何写
插入数据的sql:
insert into chart_count(interface_code,total,success,timeOut,interface_date)
(select interface_code,count(uuid) as total,sum(case when interface_status ='Y' then 1 else 0 end) as success,sum(case when interface_time > 30 then 1 else 0 end) as timeOut,to_char(interface_date,'yyyy-MM-dd') as interface_date from chart where to_char(interface_date,'yyyy-MM-dd') < '2019-05-10' group by to_char(interface_date,'yyyy-MM-dd'),interface_code)
这一部分插入的代码如何写
项目:JFinal