trunc效率比较

select count(*) from balance_acct_item_payed  where billing_cycle_id=202005 and trunc(created_date) = trunc(sysdate-70);
select count(*) from balance_acct_item_payed  where billing_cycle_id=202005 and to_char(sysdate-70,'yyyymmdd')=to_char(created_date,'yyyymmdd');
select count(*) from balance_acct_item_payed  where billing_cycle_id=202005 and created_date >= trunc(SYSDATE-70, 'dd') and created_date < trunc(SYSDATE-69, 'dd');

trunc效率比较

trunc效率比较

trunc效率比较

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-12-11
  • 2022-01-10
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2022-01-28
  • 2022-03-08
  • 2022-12-23
相关资源
相似解决方案