关于vf的一些操作命令的翻译 , 高手进

来源:百度知道 编辑:UC知道 时间:2024/05/18 08:29:57
就学生表,写出实现下面操作的命令:
1.显示第五号记录
2.显示第五号至第十号记录之间的全部记录
3.连续列出1980年以后出生的学生的姓名与出生年月
4.显示在1985年1月1日至1983年12月31日之间的学生记录
5.在表的顶部增加一个新记录
6.修改最后一个记录
7.将16岁以下的少数民族学生入学成绩提高20分
8.将学生表原样复制为xsda.dbf,并物理删除xsda.dbf中记录号为偶数的记录
9.显示入学成绩前5名的成绩
10.统计1985年出生的学生数,并把它存入变量number中
11.分别求男女学生的平均年龄
12.查找并显示第一个少数民族学生
13.建立一个结构复合索引文件,其中包括两个索引:记录以学号降序排列;记录按出生年月升序排列
14.查询年龄最小与最大的学生
15.按性别对入学成绩进行汇总

1.goto 5
display
2.goto 5
list next 5
3.list for year(出生日期)>1980
4.list for 出生日期>={^1983-12-31} and 出生日期<={1985-1-1}
5.go 1
insert befo
6.go bottom
edit
7.replace all 成绩 with 成绩+20 for 年龄<=16
8.程序:use 学生
copy to xsda
go 1
do while !eof()
delete
skip+2
enddo
9.sele * top 5 from 成绩 order by 成绩 desc
10.sele count(*) from 学生 where year(出生日期)=1985 into array number
11. sele 性别,avg(年龄) from 学生 group by 性别
12.locate for 民族<>"汉"
display
13.index on 学号+str(出生年月) tag xh
14.sele * from 学生 where 年龄=(sele min(年龄) from 学生)
sele * from 学生 where 年龄=(sele max(年龄) from 学生)
15.sele * from 学生 group by 性别