使用update语句无法更新数据库
cb_1 click事件
int a,b
decimal rp,bn
select max(typenum)
into :a
from type;
for b=1 to a
select roomprice
into :rp
from "type"
where "type"."typenum"=:b;
bn=rp*0.9
update "type"
set "type"."roomprice"=:bn
where "type"."typenum"=:b
using SQLCA;
commit using SQLCA;
dw_1.retrieve()
b=b+1
next
没有报错,但就是什么反应都没有,取a值没有问题,就是不能更新。