开发工具:
文件大小: 154kb
下载次数: 0
上传时间: 2013-04-03
详细说明: 数据库语言解析 各种数据库的流程 目录........................................................................................................................................ 2 第 1章 模块功能概要描述................................................................................................... 4 第 2章 SQL 语句编写注意问题 .......................................................................................... 5 2.1 IS NULL 与 IS NOT NULL.................................................................................... 5 2.2 联接列............................... ....................................................................................... 5 2.3 带通配符(%)的 like语句 .................................................................................. 6 2.4 Order by 语句 ...................................................................................................... 6 2.5 NOT......................................................................................................................... 6 2.6 IN 和 EXISTS........................................................................................................ 7 第 3章 SQL 语句性能优化 .................................................................................................. 9 3.1 选用合适的 ORACLE 优化器................................................................................ 9 3.2 访问 Table的方式................................................................................................... 9 3.3 共享 SQL 语句...................................................................................................... 10 3.4 选择最有效率的表名顺序(只在基于规则的优化器中有效)............................. 11 3.5 WHERE 子句中的连接顺序................................................................................. 12 3.6 SELECT子句中避免使用 ‘ *’ ............................................................................. 13 3.7 减少访问数据库的次数........................................................................................ 13 3.8 使用 DECODE 函数来减少处理时间.................................................................. 14 3.9 整合简单,无关联的数据库访问........................................................................... 15 3.10 删除重复记录...................................................................................................... 16 3.11 用 TRUNCATE 替代 DELETE.......................................................................... 16 3.12 尽量多使用 COMMIT........................................................................................ 16 3.13 计算记录条数...................................................................................................... 17 3.14 用 Where子句替换 HAVING子句.................................................................... 17 3.15 减少对表的查询.................................................................................................. 17 3.16 通过内部函数提高 SQL 效率............................................................................ 18 3.17 使用表的别名(Alias) .......................................................................................... 20 3.18 用 EXISTS替代 IN............................................................................................. 20 3.19 用 NOT EXISTS 替代 NOT IN........................................................................... 21 3.20 用表连接替换 EXISTS....................................................................................... 21·············································································································································· ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.