about me:oracle ace pro,optimistic,passionate and harmonious. focus on oracle,mysql and other database programming,peformance tuning,db design, j2ee,linux/aix,architecture tech,etc
全部博文(166)
分类: oracle
2022-04-12 08:43:10
sql> create or replace procedure test_prc(var1 in number,var2 out number) 2 as 3 begin 4 var2 := var1 1; 5 end; 6 / procedure created sql> sql> create or replace function test_func(var1 in number) 2 return number 3 as 4 var2 number; 5 begin 6 test_prc(var1,var2); 7 return var2; 8 end; 9 / function created sql> select test_func(1) from dual; test_func(1) ------------ 2 |
上一篇:
下一篇: