摘要:
提高SQL语句的执行效率,最常见的方法就是建立索引,以及尽量避免全表扫描。 ①.避免在where子句中使用 is null 或 is not null 对字段进行判断。 如:select id from table where name is null 在这个查询中,就算我们为 name 字段设置了 阅读全文
摘要:
eg:COMPONENT表数据如下 1.执行select * from (select com.*,rownum r_num from (select * from COMPONENT)com where rownum < 8) where r_num > 2 2.执行 select * from 阅读全文