oracle 在pl/sql 工具中怎么运行一个存储过程
展开全部
-----获取所有过期的记录
select g.f_fee_id,g.f_addvalue_number,g.f_fee_overtime from t_mid_sent_feevalue_log g
where g.f_fee_state ='0'
and g.f_fee_overtime < to_char(sysdate,'yyyyMMddhh24miss')
begin
for cur_row in cur_tmp loop
begin
exit when cur_tmp%notfound;
----更新赠送日志表记录更新为过期
update t_mid_sent_feevalue_log t set t.f_fee_state ='2' where t.f_fee_id = cur_row.f_fee_id
----把充值券明细表锁定状态5 更新为初始化0
select g.f_fee_id,g.f_addvalue_number,g.f_fee_overtime from t_mid_sent_feevalue_log g
where g.f_fee_state ='0'
and g.f_fee_overtime < to_char(sysdate,'yyyyMMddhh24miss')
begin
for cur_row in cur_tmp loop
begin
exit when cur_tmp%notfound;
----更新赠送日志表记录更新为过期
update t_mid_sent_feevalue_log t set t.f_fee_state ='2' where t.f_fee_id = cur_row.f_fee_id
----把充值券明细表锁定状态5 更新为初始化0
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询