首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 步骤通过用户id查询金额

2012-08-17 
oracle 方法通过用户id查询金额create or replace function getCurrentTotalMoney(v_userId in integer) r

oracle 方法通过用户id查询金额

create or replace function getCurrentTotalMoney(v_userId in integer) return integer is  v_balance integer;begin  select t.totalmoney into v_balance from account t where t.userid = v_userId;  dbms_output.put_line(v_balance);  return(v_balance);end getCurrentTotalMoney;
?

热点排行