oracle从一个表查询数据插入到另一个表中

oracle 插入、合并、查询、聚合操作insert into t_idd_event_history (detectorcode,detectorname,loopcode,subeventtype,description,occuretime,releasetime)
oracle 插入、合并、查询、聚合操作
select t.detectorid,t.detectorname,t.loopcode,t.subeventtype,t.description,t.updatetime,sysdate from t_iid_event_current t
oracle sql日期比较:
在今天之前:
select * from up_date where update < to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
select * from up_date where update <= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')

在今天只后:
select * from up_date where update > to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
select * from up_date where update >= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')

精确时间:
select * from up_date where update = to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')

在某段时间内:
select * from up_date where update between to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss'and to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
select * from up_date where update < to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss'and update > to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
select * from up_date where update <= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss'and update >= to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss')

相关文章:

  • 2021-06-01
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-11-05
  • 2021-07-01
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2021-09-25
  • 2023-03-21
  • 2022-02-08
  • 2021-09-30
  • 2022-12-23
相关资源
相似解决方案