一、join语句算法创建两个表t1和t2
create table `t2` ( `id` int(11) not null, `a` int(11) default null, `b` int(11) default null, primary key (`id`), key `a` (`a`)) engine=innodb;create definer=`root`@`%` procedure `idata`()begin declare i int; set i=1; while(iff7f97636a3e2be73ed359e119478a05=1 and b<=2000;获取表t2中满足条件的2000行数据3.把这2000行数据,一行一行地取到业务端,到hash结构的数据表中寻找匹配的数据。满足匹配的条件的这行数据,就作为结果集的一行
【相关推荐:mysql视频教程】
以上就是深入了解mysql中的join语句算法(优化方法介绍)的详细内容。