use mydb;
show procedure status where Db='mydb';
create procedure hi() select 'hello';
call hi();
本文介绍了一种在MySQL中创建并使用存储过程的方法。通过具体的SQL命令演示了如何选择数据库、展示当前数据库中的存储过程状态、创建一个简单的存储过程并向其发送调用指令。
use mydb;
show procedure status where Db='mydb';
create procedure hi() select 'hello';
call hi();
374

被折叠的 条评论
为什么被折叠?