一道vfP程序题 alter table order add column 总金额 N(7,2)close alluse ordergo topdo while not eof() sele sum(orderitem.数量*goods.单价) from orderitem,goods where;orderitem.商品号=goods.商品号 and orderitem.订单号 =order.订单号
来源:学生作业学帮网 编辑:学帮网 时间:2024/07/01 07:46:14
一道vfP程序题
alter table order add column 总金额 N(7,2)
close all
use order
go top
do while not eof()
sele sum(orderitem.数量*goods.单价) from orderitem,goods where;
orderitem.商品号=goods.商品号 and orderitem.订单号 =order.订单号;
group by 订单号 into array a
replace 总金额 with a(1)
skip
enddo
replace 总金额 with a(1) 换成update order set 总金额=a为什么不行?总金额全部是一个值?
你对update用法不是很了解
update order set 总金额=a where ...只有加入条件才能定位到那一条记录,不然就是全部记录被替换了
如果你知道订单号
update order set 总金额=a where 订单号="12345"
就可以了
vfp程序题一道
一道vfP程序题 alter table order add column 总金额 N(7,2)close alluse ordergo topdo while not eof() sele sum(orderitem.数量*goods.单价) from orderitem,goods where;orderitem.商品号=goods.商品号 and orderitem.订单号 =order.订单号
一道vfp程序题编程实现:计算1!+2!+3!+.,并显示其结果!
求高手解答vfp程序改错题!
VFP 程序题如何做 具体例子
麻烦做一道程序题vfpset talk offSTORE VFP教程”TO XYCLEARN=1 M=3DO WHILE N
vfp程序问题
vfp程序疑问
问一道关于vfp的改错题
vfp程序改错怎么做
一道程序框图题
vfp 请问一道程序题目做菱形12 23 3 34 4 4 43 3 32 21
这是VFP的程序题,请问上面的两个空填什么,
vfp 1+2+...+99+100的程序
做vfp题的时候发现答有时答案上写into dbf 有时候是 into table 到什么时候用table 什么时候用dbf?
一道关于VFP的选择题,可否帮忙解释下为什么选D,执行下列程序,显示结果是().S=0N=1DO WHILE N
“程序功能是计算1累加至100,其中11,22,...99不参加求和.”还有一道“编写程序‘SMJH.PRG’ ,要求显示所有100以内6的倍数,并求这些数的和.”实在抱歉,昨天忘了注明这是 VFP 编程题,不好意思.我
有关VFP!第八题!