标签:bsp 操作 abc begin class cti color name 数据
SQL> select * from mytest; ID NAME PASSWD SALARY ----- -------------------- -------------------- -------------------------------------------------------------------------------- 1 gagaga 123 100 2 gaodingle!!!! 123 100 3 gagaga 123 100 SQL> SQL> create function annual_calsaly(id_in varchar2) 2 return 3 number is calsaly number(7,2); 4 begin 5 select salary*12 into calsaly from mytest where id =id_in; 6 return calsaly; 7 end; 8 / Function created SQL> var abc number; SQL> call annual_calsaly(‘1‘)into:abc; Method called abc --------- 1200
标签:bsp 操作 abc begin class cti color name 数据
原文地址:http://www.cnblogs.com/lingyejun/p/7095721.html