set linesize 200set pagesize 100column day format a15 heading 'Day'column d_0 format a3 heading '00'column d_1 format a3 heading '01'column d_2 format a3 heading '02'column d_3 format a3 heading '03'column d_4 format a3 heading '04'column d_5 format…
select max(ss.size_GB), avg(ss.size_GB) from (select s.*, rownum rn2 from (select a.* from (select t1.*, rownum rn from (SELECT TRUNC(FIRST_TIME) time, SUM(BLOC…
Oracle 查询出来的数据取第一条 --------------------------------------------------------------------------- 转载自:http://www.itpub.net/thread-246442-1-1.html select * from (select * from <table> order by <key>) where rownum=1; select * from (select * from &l…
oracle 查询最近执行过的 SQL语句 (2014-06-09 18:02:43) 转载▼ 分类: Database oracle 查询最近执行过的 SQL语句 select sql_text,last_load_time from v$sql order by last_load_time desc; SELECT sql_text, last_load_time FROM v$sql WHERE last_load_time IS NOT NULL and sql_text…