set talk offclearuse stdaindex on 性别+substr(dtoc(入学时间),7,2)+substr(dtoc(入学时间),1,2)+substr(dtoc(入学时间),4,2) to xcgo top姓名,性别,入学时间go 4姓名,性别,入学时间usereturn附stda表

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 16:02:41

set talk offclearuse stdaindex on 性别+substr(dtoc(入学时间),7,2)+substr(dtoc(入学时间),1,2)+substr(dtoc(入学时间),4,2) to xcgo top姓名,性别,入学时间go 4姓名,性别,入学时间usereturn附stda表
set talk off
clear
use stda
index on 性别+substr(dtoc(入学时间),7,2)+substr(dtoc(入学时间),1,2)+substr(dtoc(入学时间),4,2) to xc
go top
姓名,性别,入学时间
go 4
姓名,性别,入学时间
use
return

附stda表

set talk offclearuse stdaindex on 性别+substr(dtoc(入学时间),7,2)+substr(dtoc(入学时间),1,2)+substr(dtoc(入学时间),4,2) to xcgo top姓名,性别,入学时间go 4姓名,性别,入学时间usereturn附stda表
index on 性别+substr(dtoc(入学时间),7,2)+substr(dtoc(入学时间),1,2)+substr(dtoc(入学时间),4,2) to xc &&先按性别排序(先男后女)再按入学时间排序
go top &&排序后的首条记录
姓名,性别,入学时间 王一良 男 09/10/74
go 4 &&记录号为4的记录(不受排序影响)
姓名,性别,入学时间 陈刚 男 08/29/94