数据库大作业笔记(十) 发表于 2019-05-15 MySQL存储过程中使用select…into…语句赋值1234567create procedure getMsg() Begin declare v_title varchar(30); declare v_content varchar(100); select title,content into v_title,v_content from news where artId=333; select v_title,v_content; -- 将变量作为结果集返回End