专题文章
时长:00:00更新时间:2020-11-09 17:29:20
1 用mysql客户端登入。2 选择数据库;mysql>use test。3 查询当前数据库有哪些存储过程。mysql>show procedure status where Db='test'。4 创建一个简单的存储过程。mysql>create procedure hi() select 'hello'。5 存储过程创建完毕,看怎么调用它。mysql>call hi()。显示结果 mysql> call hi()。+-------+;| hello |; +-------+。 | hello |。+-------+;1 row in set (0.00 sec) Query OK.0 rows affected (0.01 sec)。
查看详情