随笔分类 - Oracle
摘要:闪回查询:基于时间的flash back 查询SQL> set time on;12:09:12 SQL> delete from firefox_t01_t where x=1;12:09:20 SQL> commit;12:11:05 SQL> select * from firefox_t01...
阅读全文
摘要:SQL_TRACEset linesize 10000;set pagesize 20000;set serveroutput on;alter session set sql_trace=true;select count(*) from firefox;alter session set sql...
阅读全文
摘要:SGA --Database Buffer Cachebuffer cache 里面存放了从磁盘上读到内存中的数据块这些数据块可以被所有的会话访问,是全局共享的;default pool -- block= 8k- 正常情况下,数据块存放的内存区域。keep pool- 这个区域(池)用于将一些数...
阅读全文
摘要:declare v_count NUMBER;begin select count(*) into v_count from emp; dbms_output.put_line('sql%rowcount =' || sql%rowcount);end;/declareb...
阅读全文
摘要:集合函数;declare type list_nested is table of varchar2(100) not null; v_all list_nested := list_nested('changan','hubei','shanghai','beijin...
阅读全文
摘要:--取出集合;长度declare type list_nested is table of varchar2(50) not null; v_all list_nested := list_nested('a','b','c','d','c','d');begin ...
阅读全文
摘要:函数Oracle 字符函数; 首字母大写;INITCAP :函数;select ID,NAME,INITCAP(NAME) from alex_t05 ;Oracle查询替换函数 REPLACEselect NAME,REPLACE(NAME,'x','__') FROM alex_05oracle...
阅读全文
摘要:1、oracle Index2、oracle 创建表空间语法3、oraclee 创建存储过程Oracle 索引结构扫描,获取待返回数据行的ROWID 根据获取的ROWID扫描表,获取对应数据行,并返回ROWID的扫描方式其实就是索引扫描的第二个动作,换而言之,索引扫描的目标就是通过ROWID扫描...
阅读全文