两种方法获取返回值 用select DROP PROCEDURE IF EXISTS `getTableById`; CREATE DEFINER = `root`@`localhost` PROCEDURE `getTab
两种方法获取返回值
用select
DROP PROCEDURE IF EXISTS `getTableById`;
CREATE DEFINER = `root`@`localhost` PROCEDURE `getTableById`(IN `id` int)
BEGIN
SELECT * from nodelist t where t.id = id;
END;
用out模式或者inout模式
DROP PROCEDURE IF EXISTS `getInOutId`;
CREATE DEFINER = `root`@`localhost` PROCEDURE `getInOutId`(INOUT `id` int)
BEGIN
END;
--结束END--
本文标题: MySQL 存储过程示例
本文链接: https://lsjlt.com/news/6724.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0