ORACLE的一些基础

          物化视图的创建:
         create materialized view mview_deptsum
         build immediate
         refresh on demand
         enable query rewrite
         as select a.deptno,a.dname,count(b.empno)
         from dept a,emp b where a.deptno=b.deptno
         group by a.deptno,a.dname
         物化视图的刷新:
         EXEC DBMS_MVIEW.REFRESH('SCOTT.MQT_EMP');
         索引统计的执行:
         analyze table scott.emp compute statistics; 
         << http://www.oradev.com/create_statistics.jsp>>
         时间戳与字符串转化:
         select to_timestamp('2000-1-1 21:0:0.12', 'syyyy-mm-dd hh24:mi:ss.ff6') from dual;
         快速清空一张表:
         truncate table  tablename;
         oracle 转换问题.

你可能感兴趣的:(oracle,时间转换,物化视图,休闲,索引统计)