#存储过程的框架
delimiter$$ #分隔符开始
#声明存储过程函数,函数名应该符合标识符命名规范
create procedure update_student_info(
in p_userName varchar(20),
in p_phone varchar(20),
in p_sex char(2),
in p_introduce varchar(200))
#开始撰写存储过程
begin
#sql语句,DML操作
--
#修改语句
update student set introduce=p_introduce where userName=p_userName;
end$$ #分隔符终止
delimiter; #分隔符结束
#使用存储过程(调用存储过程)
-- call add_student_info('姑娘','122334455','女','1女生7');
call add_student_info('姑娘','122334455','女','人');
select*from student where introduce like '%人%';