根据【开始】【结束日期】查询数据库数据

来源:互联网 发布:播放视频文件修复软件 编辑:程序博客网 时间:2024/06/18 11:16
select count(*)
  from sd_log sl
 where sl.create_date >= to_date('20160504 00:00:00', 'yyyymmdd hh24:mi:ss')

   and sl.create_date <= to_date('20160504 23:59:59', 'yyyymmdd hh24:mi:ss');


SELECT inst_id FROM inst_table start WITH inst_id='XXX' connect BY prior inst_id = inst_up ;

0 0
原创粉丝点击