求高手进vf 问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 05:59:09
select 民族,avg(数学),avg(英语) from xuesheng,chengji where xuesheng.学号=chengji.学号 and allt(民族)='汉' into array temp1
select avg(数学),avg(英语) from xuesheng,chengji where xuesheng.学号=chengji.学号 and allt (民族)!='汉'into array temp2
use table3
zap
append blank
gather from temp1
append blank
replace 民族 with "其他",数学平均分 with temp2 [1],英语平均分 with temp2[2]
use

中的allt(民族)='汉' 和 (民族)!='汉' 还有 zap
append blank
gather from temp1
append blank
是什么意思

allt(民族)='汉'
"民族"这个字段中的内容除去前后空格后是"汉"

allt(民族)!='汉'
民族这个字段的内容去掉前后的空格后剩下的部分不是"汉"

zap
删除当前工作区中数据表的所有记录

append blank
在当前工作区中添加一条空白记录

gather from temp1
用数组temp1中的数据改写当前记录,数组的每一个元素对应表中的一个字段,对应顺序是表格物理字段顺序.

append blank
再添加一条空记录