SQL Procedure
简介 Mysql存储过程调试工具:dbForge Studio for MySQL Oracle PL/SQL 语句结束一定要加分号;,如果没加运行会提示下一行出错 oracle转义字符为 ' ,如 '' 转义后就是 ' sqlplus查看存储过程 select text from all_source where name = 'my_procedure'; 通过select执行函数select my_func(select id from user where username='test') mf from dual;可以到函数返回值 Oracle内置包/方法 控制语句 if-else 123if ... end if;if ... else ... end if;if ... elsif ... end if; -- 注意是 elsif goto <<xxx>>的标记符号,常用来跳出循环,使用goto可以跳到标记的位置 1234567for i in 1..100 loop if i > 10 then goto end_loop; end if;end loop;<<outer>>dbms_output.put_li ...