- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
如何写sql(How to write SQL)
如何写sql(How to write SQL)
To do not only to write SQL, but also to write a good performance of the SQL, the following are some of the notes, please pay attention to the students:
(1) select the most efficient table name order (valid only in the rule based optimizer):
The ORACLE parser in accordance with the order from right to left with a table in the FROM clause, the FROM clause written at the end of the table (based on table driving table) will be processed first, in the FROM clause contains multiple tables, you must select the number of records at the table as the base table. If you have more than 3 tables connected to the query, you need to select the table table (intersection) as the base table, which refers to the table referenced by other tables
(2) the join order in the WHERE clause:
The ORACLE sequence analysis of WHERE clause bottom-up, according to this principle, the connection between the tables must be written before the other end of the WHERE conditions, these conditions can filter out the maximum number of records that must be written in the WHERE clause.
(3) avoid using * in the SELECT clause:
ORACLE in the parsing process, will be * are converted to all the names, this is done by querying the data dictionary, which means there will be more time consuming
(4) reduce the number of accesses to the database:
ORACLE does a lot of work internally: parsing SQL statements, estimating index utilization, binding variables, reading data blocks, and so on;
(5) to reset the ARRAYSIZE parameter in SQL*Plus, SQL*Forms, and Pro*C, you can increase the amount of retrieved data per database access, with a recommended value of 200
(6) use the DECODE function to reduce processing time:
Using the DECODE function, you can avoid repeated scans of the same record or repeated connections to the same table
(7) integrating simple, unrelated database access:
If you have a few simple database query statements, you can integrate them into a query (even if there is no relationshi
您可能关注的文档
- 现代软件工程(第二讲) 软件工程现状和其发展.ppt
- 瓜州电缆性能保证值和需要数量.doc
- 玻璃钢反应釜性能和介绍.doc
- 王镜岩-生物化学(第三版)配套练习和详解.doc
- 甘薯sporamin胰蛋白酶抑制剂活性影响机制和抗肿瘤作用研究.doc
- 生产2 220V停电线路验电、挂接地线和单横担安.doc
- 生产医疗费用和医生...doc
- 生化仪所需试剂和.ppt
- 生命体征监测和护理.doc
- 生态系统结构和能量流动总结与题目.ppt
- 如何利用均衡器改善音质(How to use the equalizer to improve sound quality).doc
- 如何制作材料明细表(How to make a list of material).doc
- 如何加强对学生的管理(How to strengthen the management of students).doc
- 如何区分基础梁、基础拉梁、基础连梁、地下框架梁、地梁(How to distinguish foundation beam, the fundamental beam, foundation beams, underground frame beams and beam).doc
- 太阳能热利用课件-2(Solar thermal utilization of -2 courseware).doc
- 如何在flash中插入音乐(How to insert music in flash).doc
- 如何唱好高音(How to sing the treble).doc
- 如何在word里面自动生成目录(How to automatically generate directory in word.).doc
- 如何去影响一个团队协调发展和快速进步有那些好的建议文库(How to affect a team coordinated development and rapid progress Have the good advice library).doc
- 如何区分基础梁,基础拉梁,基础连梁,地下框架梁,地梁(How to distinguish foundation beam, foundation beam, foundation beam, underground frame beam, beam).doc
最近下载
- 高压电工培训第五章高压电气设备.ppt VIP
- 《新媒体写作》—教学教案.pdf VIP
- 2025年江苏省保安员考试试题带解析附参考答案【完整版】.docx VIP
- 中国大唐集团公司集控值班员考核试题库《电气运行》.pdf VIP
- 2019.01.25 方法精讲-判断之图形推理2 聂佳 (讲义+笔记).docx VIP
- 建筑工程图集 16G101-2:混凝土结构施工图平面整体表示方法制图规则和构造详图(现浇混凝土板式楼梯).pdf VIP
- 无人机结构与系统-第1章 无人机结构与飞行原理.pptx VIP
- 课件:协助老年人穿脱简易矫形器.pptx VIP
- 培训课件之螺钉的标准规范.ppt VIP
- 数字经济课程大纲.docx VIP
文档评论(0)