二
1.use student
sort on 出生年月 to student1
use student1
display all
2.use student
sort on 性别/a,数学,外语/d to student2
use student2
display all
3.use student
index on 姓名 to xm
display all
4.index on 数学 desc tag sx
display all
index on 外语 desc tag wy
display all
5.index on 性别+str(100-数学)+str(100-外语) tag xbcj
display all
6.index on 数学+外语 tag cj of xuesheng desc
display all
7.use student
modify structure
8.close table
use student
set index to xuesheng,xm,student
9.set order to tag sx
seek 88
?found()
display
10.set order to tag sr
seek {^1984-12-12}
?found
display
11.set order to xm
find 张
?found()
display
skip
display
12.set order to
set index to
use
1.use student
sort on 出生年月 to student1
use student1
display all
2.use student
sort on 性别/a,数学,外语/d to student2
use student2
display all
3.use student
index on 姓名 to xm
display all
4.index on 数学 desc tag sx
display all
index on 外语 desc tag wy
display all
5.index on 性别+str(100-数学)+str(100-外语) tag xbcj
display all
6.index on 数学+外语 tag cj of xuesheng desc
display all
7.use student
modify structure
8.close table
use student
set index to xuesheng,xm,student
9.set order to tag sx
seek 88
?found()
display
10.set order to tag sr
seek {^1984-12-12}
?found
display
11.set order to xm
find 张
?found()
display
skip
display
12.set order to
set index to
use