摘要:
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引 2.避免在索引列上使用NOT在 where 子句中对字段进行 null 值判断,在索引列上使用NOT, NOT会产生在和在索引列上使用函数相同的影响。当Oracle遇到NOT,他就会停止使用索 阅读全文
摘要:
1、创建一个单一的索引: create index 索引名称 on 表名(列名); 2、创建复合索引 create index 索引名称 on 表名(列名1,列名2); 3、删除索引 drop index 索引名称; 4、查询表的索引 select * from all_indexes where 阅读全文