摘要:
select emp.*,dept.* from tb_emp03 emp,tb_dept03 dept where emp.deptno=dept.id -- 不加hint SQL> select emp.*,dept.* from tb_emp03 emp,tb_dept03 dept wher 阅读全文
posted @ 2020-01-28 17:08
逆火狂飙
阅读(188)
评论(0)
推荐(0)
摘要:
索引全扫描的执行计划: SQL> select max(age) from tb_emp04 emp; 已用时间: 00: 00: 00.01 执行计划 Plan hash value: 2758779452 | Id | Operation | Name | Rows | Bytes | Cost 阅读全文
posted @ 2020-01-28 16:52
逆火狂飙
阅读(499)
评论(0)
推荐(0)
摘要:
先准备实验材料: 一张表及其数据: create table tb_emp04( id number(8,0) primary key, name nvarchar2(20), age number(2,0) ) insert into tb_emp04 select rownum,dbms_ran 阅读全文
posted @ 2020-01-28 12:49
逆火狂飙
阅读(452)
评论(0)
推荐(0)
摘要:
SQL> select /*+ leading(emp,dept) usenl(emp) */ emp.*,dept.* from tb_emp03 emp,tb_dept03 dept where emp.deptno=dept.id; 执行计划 Plan hash value: 96039728 阅读全文
posted @ 2020-01-28 04:26
逆火狂飙
阅读(289)
评论(0)
推荐(0)