The basics of stored procedures in mysql

stored procedure procedure

It can be understood as a function that handles additions, deletions and changes without returning a value

Basic syntax for creating stored procedures

create procedure procedure name ([parameter list])

begin

--process body

end

If the main body of the stored procedure has only one statement, you can omit begin end

create procedure pro_1()

select * from  stu1;

call stored procedure

call procedureName();

call pao_1();

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325027028&siteId=291194637