日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle描述dept,一些关于oracle驱动表的描述

發布時間:2024/1/23 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle描述dept,一些关于oracle驱动表的描述 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

描述1:

Hi, hope this help:

The ‘driving’ table is the table we will join FROM — that is JOIN TO other

tables.??For example, lets say you have the query:

select * from emp, dept where emp.deptno = dept.deptno;

In this case the driving table might be DEPT, we would fetch rows from DEPT in a

full scan and then find the rows in EMP that match.??DEPT is the driving table.

The choice of a driving table made using many factors.??For example, in the

above query if there was an index on DEPT(DEPTNO) but not EMP(DEPTNO), we would

probably use EMP as the driving table — we would fetch rows from EMP and then

using the DEPT(DEPTNO) index — find their matches in the DEPT table.??Table

sizes, cardinality of column values, and other things can affect the choice of a

driving table (eg: HINTS).

When using the Rule Based Optimizer — the placement of tables in the FROM

clause is relevant.??We process the from clause from the RIGHT to the LEFT — we

would tend to pick a driving table from the end of the FROM list.??There is a

hint in the Cost Based Optimizer to have this happen as well.

When using CBO — the order of tables is not relevant (unless you hint it to

be).??We use the statistics and data dictionary to determine which table is best

to be used as the driving table.

描述2:

以一個比較兩本字典來做例子:

一本字典有索引目錄(dict a), 一本沒有(dict b)

現在要找出所有a開頭的單詞的異同

那么比較的時候,你會怎么比較?

合理的做法應該是以沒有索引的字典dict b開始, 找到a開頭的那一頁, 然后對于每個單詞, 通過使用索引在dict a中找到相應的條目

如果反過來, 效率會相同嗎?

驅動表,通俗的講就是先從哪個表開始檢索,良好的驅動表是成功優化的一半

總結

以上是生活随笔為你收集整理的oracle描述dept,一些关于oracle驱动表的描述的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。