drop procedure if exists p_hello_world;

create procedure p_hello_world(in v_id int)
begin
    if (v_id > 0) then
        select '> 0';
    elseif (v_id = 0) then
        select '= 0';
    else
        select '< 0';
    end if;
end;

call p_hello_world(-9);

 

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-05-17
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-12-02
  • 2021-09-28
猜你喜欢
  • 2021-09-12
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案