⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 status.sql

📁 本人在工程上收集的比较常用的oracle sql语句 有问题请发email:leafboyman@tom.com
💻 SQL
字号:
select nn||'*1',to_char(to_date('2006-12-7 0:0:0','yyyy-mm-dd hh24:mi:ss')+nn*1/24,'yyyy-mm-dd hh24:mi:ss'),
to_char(to_date('2006-12-7 0:0:0','yyyy-mm-dd hh24:mi:ss')+(nn+1)*1/24,'yyyy-mm-dd hh24:mi:ss')
,sum(sended),sum(total) from (select trunc((stime-to_date('2006-12-7 0:0:0','yyyy-mm-dd hh24:mi:ss'))*24/1) as nn
,sended,total from status where stime>=to_date('2006-12-7 0:0:0','yyyy-mm-dd hh24:mi:ss') 
and stime<to_date('2006-12-8 0:0:0','yyyy-mm-dd hh24:mi:ss')) group by nn;


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -