2022-02-17から1日間の記事一覧

in句件数の実行計画への影響

DB

MySQL (8.0.26) drop table tab1;create table tab1( col1 bigint ,col2 bigint ); drop table tab2;create table tab2( col1 bigint ,col2 bigint ); drop procedure proc1; delimiter //create procedure proc1(in x int)begin declare i int; set i = 0; …

select句にSQLを書く場合とJOINする場合の比較

DB

MySQL (8.0.26) -- 1. テストデータ作成 drop table tab1;create table tab1( col1 bigint ,col2 bigint ); drop table tab2;create table tab2( col1 bigint ,col2 bigint ); drop procedure proc1; delimiter //create procedure proc1(in x int)begin dec…