前言 大家好吖,欢迎来到 YY 滴MySQL系列 ,热烈欢迎! 本章主要内容面向接触过C++的老铁 主要内容含:
-- 创建
create procedure p1()
begin
select count(*) from student;
end;
-- 调用
call p1();
-- 查看
select * from information_schema,ROUTINES where ROUTINE_SCHEMA = 'itcast';
--查询指定数据库的存储过程及状态信息
show careate procedure p1;
--查询某个存储过程的定义
-- 删除
drop procedure if exists p1;