oracle中字符串连接用||
create or replace procedure testIf(idid number) is
v_name stu.name%type;
v_age stu.age%type;
begin
  if idid = 1 then
    update stu set age = age*2 where id = idid;
    select age into v_age from stu where id = idid;
    dbms_output.put_line('age'||v_age);--oracle中字符串连接用||
   elsif idid = 3 then
     update stu set name = 'shitailong' where id = idid;
     select name into v_name from stu where id = idid;
     --oracle中的字符串连接用||
     dbms_output.put_line('name'||v_name);
   else
     update stu set age = age*3 where id = idid;
     select age into v_age from stu where id = idid;
     dbms_output.put_line('age'||v_age);
  end if;

end;

 

相关文章:

  • 2021-12-08
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-06-12
  • 2021-11-28
猜你喜欢
  • 2021-11-29
  • 2021-08-22
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
相关资源
相似解决方案