mysql查询解析过程_MySQL连接查询流程源码分析

pfs_swpawn_thread

|-handle_one_connection

|-do_handle_one_connection

|-do_command

|-dispatch_command

|-mysql_parse

|-parse_sql

| |-MYSQLparse

|-mysql_execute_command

|-select_precheck

| |-check_table_access

|-execute_sqlcom_select

| |-open_normal_and_derived_tables

| |-open_tables

| | |-open_and_process_table

| | |-open_table(THD *thd, TABLE_LIST *table_list, Open_table_context *ot_ctx)

| | |-Table_cache::get_table

| | |-get_table_share_with_discover

| | | |-get_table_share

| | | |-open_table_def

| | |-my_malloc // 申请表数据结构

| | |-open_table_from_share

| | |-handler::ha_open

| | |-ha_innobase::open

| | |-dict_table_open_on_name

| | |-dict_load_table

| | |-btr_pcur_is_on_user_rec

| | |-dict_load_table_low

| | | |-dict_mem_table_create

| | |-fil_space_for_table_exists_in_mem

| | |-fil_open_single_table_tablespace // 打开表空间文件

| |-mysql_handle_derived

|-handle_select

|-mysql_select

|-mysql_prepare_select

| |-JOIN::prepare

|-mysql_execute_select

|-JOIN::exec

|-select_send::send_result_set_metadata

| |-Protocol::send_result_set_metadata

|-do_select

|-sub_select

|-evaluate_join_record

|-end_send

|-select_send::send_data

|-Protocol::write

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值