SQL 解析过程
1> Parse phase:
--Searches for the statement in the shared pool
-- check syntax
--check semantics and privileges
--Merges view definitions and subqueries
--Determines execution plan
There are two types of parse operations:
--Hard Parsing: A SQL statement is submitted for the 1st time, and no shareable match is found .in the shared pool. Hard parses are very expensive.
--Soft Parsing: A SQL statement is submitted, and a match is found in the shared pool. It is really .good for performance. However, soft parsed still require syntax and security checking.
2> Bind Phase
During the bind phase:
--The Oracle DB checks the statement for references of bind variables.
--The Oracle DB assigns or reassigns a value to each variable.
3> Execute phase:
--Executes the sql statement
--Performs necessary I/O and sorts for data(Manipulation language DML statements)
4>Fetch phase:
--Retrieves rows for a query
--Sorts for queries when needed
--Uses an array fetch mechanism
- 点赞
- 收藏
- 分享
- 文章举报
- SQL语句的解析过程
- 解析SQL语句的过程
- 数据库SQL解析执行过程
- mybatis 源码解析之SQL调用过程
- 避免硬解析 的 SQL 执行过程
- SQL语句解析过程浅析
- sql查询语句解析过程--根据网络资料整理
- HiveSQL解析过程详解
- sql的解析过程
- oracle解析SQL语句的过程
- SQL语句的各个关键字的解析过程详细总结
- HiveSQL解析原理:包括SQL转化为MapReduce过程及MapReduce如何实现基本SQL操作
- oracle sql语句解析过程
- Oracle SQL解析过程
- 【转载】SQL语句的解析过程
- [转]SQL解析过程详解
- SQL语句的解析过程
- SQL解析过程详解
- SQL语句的解析过程
- Mybaits 源码解析 (六)----- 全网最详细:Select 语句的执行过程分析(上篇)(Mapper方法是如何调用到XML中的SQL的?)