使用道具 举报
最初由 jaunt 发布 [B]update 那句可以写成(你table_a 的type 字段和amount 都是数字型的话): execute immediate 'update table_b set '||a.status||'=nvl ( '||a.status||' , 0 ) + '|| to_char(a.amount) ||' where type=' || to_char(a.type); [/B]
最初由 iloveora 发布 [B]for a in(select type,status,amount)这句话我还是没明白什么用法? [/B]
本版积分规则 发表回复 回帖后跳转到最后一页