问题
问答题
在c:\ata\temp\420202\1234567\dit\GAE\temp下有“订货管理”数据库,数据库有一表“ORDER_DETAIL”,结构为:订单号C(6),器件名C(16),单价N(10,2)。请编写程序PROG1.DBF,保存在c:\ata\temp\420202\1234567\dit\GAE\temp,要求修改器件的单价,修改方法:器件名为CPU的单价下调 10%,声卡下调10%,闪存下调15%,显卡上浮 10%,内存上浮15%。
答案
参考答案:先打开编程窗口,用指定名称存于指定文件夹下,程序内容如下: use order_detail repl 单价 with 单价*0.9 for "CPU"$器件名 repl 单价 with 单价*0.9 for "声卡"$器件名 repl 单价 with 单价*0.85 for "闪存"$器件名 repl 单价 with 单价*1.1 for "显示卡"$器件名 repl 单价 with 单价*1.15 for "内存"$器件名