Home > database >  Mysql - front to create a storage function, return to a maximum of two functions, why go wrong?
Mysql - front to create a storage function, return to a maximum of two functions, why go wrong?

Time:12-15

 
Delimiter $$
The create function max1 (I int, j int)
Returns the int
The begin
Declare kint;
If I> j then
The set k=1;
The else
The set k=j;
end if;
The return of k;
End $$
Delimiter.

  • Related