Oracle diary May4 2011
来源:互联网 发布:信息技术软件 编辑:程序博客网 时间:2024/09/21 09:04
Column order in index :
If you only use query as select id1,id2 from t, then index on (id1,id2) or on (id2,id1) are the same.
But if you also user select id1 from t sometime, then index on (id1,id2) is better than (id2,id1),vice versa.
BTW, if there is a table t1 with primary key(id1,id2,id3), there will be no block on child talbe when update/delete parent table no matter your child table t2's fkey is (id1,id2,id3) or (id2,id3,id1).
- Oracle diary May4 2011
- Oracle diary - Apr27 2011
- Oracle diary - Apr28 2011
- Oracle diary May5 2011
- Oracle diary May16 2011
- Oracle diary Jun27 2011
- Oracle diary Jul01 2011
- Oracle diary Jul07 2011
- diary
- diary
- Diary
- diary
- diary
- diary
- diary
- Diary
- Diary
- Diary
- Hash碰撞
- 服务器日志出现"kernel: printk: X messages suppressed"
- iphone 学习笔记
- 使用 SqlDependency 检测更改 (ADO.NET)
- 使用criteria来实现动态的查询
- Oracle diary May4 2011
- 写写玩
- c语言 万年历!!
- ORACLE TKPROF使用步骤
- (转)Android Building System 分析
- 设计模式-结构型模式-迭代器
- 迷失的自我
- 虚拟化趋势是否会让容错服务器流行起来
- SAP中本地文件的upload和download的方法