⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp-code.test

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 TEST
字号:
## Test the debugging feature "show procedure/function code <name>" #-- source include/is_debug_build.inccreate procedure empty()beginend;show procedure code empty;drop procedure empty;create function almost_empty()    returns int  return 0;show function code almost_empty;drop function almost_empty;delimiter //;create procedure code_sample(x int, out err int, out nulls int)begin  declare count int default 0;  set nulls = 0;  begin    declare c cursor for select name from t1;    declare exit handler for not found close c;    open c;    loop      begin        declare n varchar(20);        declare continue handler for sqlexception set err=1;        fetch c into n;        if isnull(n) then          set nulls = nulls + 1;	else          set count = count + 1;          update t2 set idx = count where name=n;        end if;      end;    end loop;  end;  select t.name, t.idx from t2 t order by idx asc;end//delimiter ;//show procedure code code_sample;drop procedure code_sample;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -