【发布时间】:2014-03-28 18:24:45
【问题描述】:
在声明的函数定义中,我想在选择查询的 WHERE 子句中使用函数参数 item_account_id 的值。
CREATE OR REPLACE
FUNCTION UPDATE_CURRENT_BALANCE( item_account_id IN item_account.item_account_id%TYPE)
RETURN boolean
AS
BEGIN
if item_data_table_id = 10 then
select current_balance_curr_id
from BANK_ACCOUNT
where item_account_id = item_account_id;
end if;
RETURN true;
END UPDATE_CURRENT_BALANCE;
【问题讨论】:
标签: oracle plsql stored-functions