ORACLE SQL TUNNING
wshxgxiaoli
这个作者很懒,什么都没留下…
展开
-
活用UNION ALL
要学会活学活用。把所有的知识点结合起来。 这样才能即快又准的做优化。 例: 11:23:42 SQL> create table test as select * from dba_objects; Table created. Elapsed: 00:00:04.50 11:24:05 SQL> create index test_idx on test(objec原创 2013-07-30 14:35:26 · 374 阅读 · 0 评论 -
批量UPDATE的操作
有一个简单的业务需求,要根据另外一个表的ID去更新这张表的SYS为SCOTT;要更新211W记录。 SQL> create index t_idx1 on t_merge1(object_id); Index created. SQL> create index idx_t on t_merge2(object_id); Index created. update t原创 2013-08-08 16:43:02 · 356 阅读 · 0 评论