Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of hash join in MYSQL

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about the use of hash join in MYSQL. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In MYSQL's multi-table federated query, it is only nest loop's query method that makes MYSQL consistent is "ridiculed". Mysql will have HASH JOIN functionality after MYSQL 8.018, which is not new compared to other databases, but it is an epoch-making milestone for MYSQL.

Don't talk about the principle and so on, let's see the effect first. Set up two stored procedures to insert test data for C1 and C2 tables

Delimiter / /

CREATE PROCEDURE insert_c1 ()

BEGIN

DECLARE i int

DECLARE a varchar (20)

DECLARE b smallint

Set I = 1

Begin

WHILE i

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report