使用update语句无法更新数据库

PBtoohard PBtoohard 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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值没有问题,就是不能更新。
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
PBtoohard
脚本语言 743 成员 8,037 内容