Oracle sql 语句剖析(国外英文资料).doc

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Oracle sql 语句剖析(国外英文资料)

Oracle sql 语句分析(国外英文资料) Oracle SQL statement analysis Author: anonymous article source: EBOOK-CN.COM hits: 8 update time: 2005-12-4 The operator to optimize The advantage of SQL written IN IN is easy to write and easy to understand, which is suitable for modern software development. However, the SQL performance IN IN is always low, and the steps that are performed by ORACLE to analyze the SQL from IN IN are the following differences: ORACLE is trying to convert them to multiple tables connection, if the conversion is not successful, an executive IN the inside of the subquery, then queries the outer table records, if the conversion way success is directly connected by multiple tables query. Thus, there is at least one conversion process IN SQL IN SQL. The average SQL can be converted to success, but it cant be converted for SQL that contains grouping statistics. Recommendation: try not to use the IN operator IN the business intensive SQL. The NOT IN operator This operation is recommended by strong columns because it cannot be indexed by the table. Recommended solution: replace it with NOT EXISTS or (outer join + judgement) operator (not equal to) Not equal to the operator will never be indexed, so the processing of it will only produce full table scans. Recommendation: replace the operation operation with the same function A 0 is a 0 or a 0 A to a IS NULL or IS NOT NULL operation (if the field IS empty) Whether or not the field is empty is not an index, because the B tree index is not indexed. Recommendation: Replace the operation with other functions, such as A is not null to a or a . The field is not allowed to be empty, and a default value instead of an empty value, such as the status field in the industry extension application, is not allowed to be empty, and the default is an application. Create bitmap index (partition table can not be built, the bitmap index difficult to control, such as field values too many indexes can make the performance degradat

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档