Oracle
文章平均质量分 84
caoguanling
Coding for living and fun.
展开
-
Oracle composite index column ordering
Question: I have a SQL with multiple columns in my where clause. I know that Oracle can only choose one index, and I know about multi-column composite indexes, but I do not know how to determine t转载 2013-12-05 15:14:26 · 589 阅读 · 0 评论 -
Indexing NULL table column values for fast SQL performance
Note: Starting in Oracle 11g, there is new "create index" syntax that allows NULL values to be included in the index: create index emp_ename_idx on emp (ename asc, 1) ; Here, the "1"转载 2013-12-05 15:20:35 · 676 阅读 · 0 评论 -
Turbocharge SQL with advanced Oracle indexing
For complete details on Oracle indexing for high performance, see my book "Oracle Tuning: The Definitive Reference". Oracle includes numerous data structures to improve the speed of Oracle SQL quer转载 2014-02-24 15:07:07 · 577 阅读 · 0 评论 -
Oracle Flashback 技术总结
写在前面: 2009年的时候结合网上的资料整理了下Flashback的用法。 2011年5月份起,把我这几年来的整理的资料又重新进行了一个整理,暂定为《David Dai Oracle 学习手册》, 等第一版整理完会免费上传到网络。 对Flashback 这块又重新整理了一下。 这个比之前的版本要完整很多,内容上也要更加严谨一些。 所以对这块先转载 2014-04-03 17:06:45 · 558 阅读 · 0 评论 -
探讨如何解决数据库中的死锁问题
所谓死锁: 是指两个或两个以上的进程在执行过程中,因争夺资源而造成的一种互相等待的现象,若无外力作用,它们都将无法推进下去.此时称系统处于死锁状态或系统产生了死锁,这些永远在互相等待的进程称为死锁进程. 由于资源占用是互斥的,当某个进程提出申请资源后,使得有关进程在无外力协助下,永远分配不到必需的资源而无法继续运行,这就产生了一种特殊现象死锁。 一种情形,此时执行程序中两个或多个线程转载 2014-04-23 15:35:39 · 879 阅读 · 0 评论 -
Conversion of Oracle Columns into Rows
You Asked Hi Tom, I have t1 table as follows create table t1 (mnth varchar2(10), col_1 number, col_2 number, col_3 number, col_4 number, col_5 number ); insert into t1 values ('转载 2015-04-10 18:56:47 · 359 阅读 · 0 评论 -
Converting Oracle rows to columns
Sometimes we need to write SQL that takes separate row results (on separate lines) and roll them together into a single column. Also see my notes on non-SQL techniques for displaying multiple colu转载 2015-04-10 18:52:27 · 593 阅读 · 0 评论 -
Oracle 行转列和列转行
一、行转列 1.1、初始测试数据 表结构:TEST_TB_GRADE Sql代码: ? 1 2 3 4 5 6 7 create table TEST_TB_GRADE ( ID NUMBER(10) not null,转载 2015-04-10 18:51:38 · 633 阅读 · 0 评论