上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 应用场景:有如下的SQL:select t.*, t1.ownerfrom t, t1where t.id=t1.id;表t ,t1的数据量比较大,比如200W行.但是两张表能关联的行数却很少,比如不到50条. T1表的行比较宽,且在id列上有单列索引.这里限制t1的索引为单列索引是为了让访问t1表... 阅读全文
posted @ 2014-02-16 20:57 princessd8251 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: dbms_random是一个可以生成随机数值或者字符串的程序包。这个包有initialize(),seed(),terminate(),value(),normal(),random(),string(), 其中常用的有value(),random(),string()第一种:FUNCTIONval... 阅读全文
posted @ 2014-02-16 20:35 princessd8251 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 1. 把有NULL值的列与一个常数,或者一个带有not null约束的列一同索引create index ind_01 on t01(col01,1);或者create index ind_01 on t01(col01,col02); --col02 必须带有NOT NULL约束.下面是例子:CR... 阅读全文
posted @ 2014-02-15 13:13 princessd8251 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: 堆组织表的存储速度因为不用考虑排序, 所以存储速度会比较快. 但是要查找符合某个条件的记录, 就必须得读取全部的记录以便筛选.而这个时候为了加快查询速度, 索引就出现了, 索引是针对少量特定字段的值拿出来进行排序存储, 并记录在表中的位置,而因为索引是有序的, 所以就会很容易通过索引查询到具体的记录... 阅读全文
posted @ 2014-02-15 02:03 princessd8251 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: 下面是创建一个表,并在上面建立一些index的SQL.我们会新建一个用户,然后再那个schema下运行下面的SQL.create table indtest (f1_num number(10) not null,f2_char varchar2(20) not null,f3_numnull nu... 阅读全文
posted @ 2014-02-07 20:38 princessd8251 阅读(595) 评论(0) 推荐(0) 编辑
摘要: SQL> explain plan for select rowid rid from 2 scott.emp e where e.empno >100 and e.empno SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY(NULL, NULL, 'ADVANCED... 阅读全文
posted @ 2014-02-03 02:42 princessd8251 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/staricqxyz/article/details/8624549Find internal of "show parameter" by session tracingSQL>select*fromv$version; BANNER--------... 阅读全文
posted @ 2014-01-29 21:30 princessd8251 阅读(2429) 评论(0) 推荐(0) 编辑
摘要: SQL> select * from v$version;BANNER-------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Rel... 阅读全文
posted @ 2014-01-29 01:42 princessd8251 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 官网文档说明ROW_NUMBERSyntaxDescription of the illustration row_number.gifSee Also:"Analytic Functions"for information on syntax, semantics, and restriction... 阅读全文
posted @ 2014-01-11 21:41 princessd8251 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.oracle.com/technetwork/cn/articles/database-performance/oracle-rac-connection-mgmt-1650424-zhs.htmlOracle RAC 环境下的连接管理作者:崔华这篇文章详细介绍了Orac... 阅读全文
posted @ 2014-01-11 14:54 princessd8251 阅读(1686) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页