以下に示すように、この手順には 2 つのパラメーターがあります。私はそれらが両方とも整数であることを望みます。ただし、整数以外でプロシージャをテストしたところ、まだコンパイルされていました! なんで?
create procedure int_arith( p_1 int, p_2 int)
begin
select coalesce(p_1 + p_2, 'Null entry') addition;
end;
#
call test.a03_int_arith(10,3.3)\G
結果は次のとおりです。
addition: 13