반응형

create function get_optimizer_switch(switch_name char(32)) 

returns char(3) 

return substring_index(substring_index(substring(@@optimizer_switch from locate(switch_name,@@optimizer_switch)),',','1'),'=','-1'); 

 

 

 

select get_optimizer_switch('원하는 변수명'); 

 

 

select get_optimizer_switch('index_merge'); 



http://blog.naver.com/bomyzzang/220142393800



반응형

+ Recent posts