存储过程要返回最后一条select语句

当存储过程中有多个select 语句时,想只返回最后一条语句的返回值,前面的语句需要修改:   

 由select @lastpid := l_lastpid from tb_lastpid limit 1;

改成:

select l_lastpid INTO @lastpid from tb_lastpid limit 1;

posted on 2016-10-27 09:00  完美世界#001*  阅读(784)  评论(0)    收藏  举报

导航