Visual FoxPro及其应用系统开发书后练习答案(清华大学出版社).doc

Visual FoxPro及其应用系统开发书后练习答案(清华大学出版社).doc

  1. 1、本文档共3页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Visual FoxPro及其应用系统开发书后练习答案(清华大学出版社)

第二章.表的基本操作习题 P69: 5.(1) list record 5 (2) go 3 List next 5 go 3 list next 3 list fields 货号,品名,生产单位 for 数量5 list for 进口=.t. or year(开单日期)=1995 list for 生产单位=”上海” *非精确比较 list for (单价4000 and 进口=.t.) or (单价5000 and 进口=.f.) 也可写成 list for (单价4000 and 进口) or (单价5000 and !进口) list fields 货号,品名,单价*0.9,开单日期 for year(开单日期)=1995 list for单价2000 or (单价5000 and 进口) go 3 list rest for !进口 set exact on list for right(货号,3)=”120” list for left(货号,1)=”L” or right(left(货号,2),1)=”V” list for 单价3000 and right(生产单位,4)=”公司” 6. (1) use sp Copy structure to sp1 Use sp1 List structure (2) use sp Copy structure to sp1 fields 货号, ,品名,数量,生产单位 (3)use sp Copy to sp3 或 copy file sp.dbf to sp3.dbf (4)use sp Copy to sp4 fields货号, ,品名,数量,生产单位 (5) use sp Go 2 Copy to sp5 next 5 for 单价=3000 and 进口 (6) use sp Copy to sp6 for 开单日期{1/1/1996} (7) use sp Copy to sp.txt sdf Use sp6 Append from sp.txt sdf 7. use sp Copy to sp1 use sp1 list stru list replace all 数量 with 数量*2 go 3 insert delete record 3 delete record 7 recall record 3 pack append from sp.dbf list use sp1 go 3 scatter to a memo a(4)=3500 gather from a 第三章 查询与统计 1 use sb sort to sb1 on 部门 /a fields 编号,名称,价格,部门 for 价格10000 use sb1 list use sb sort to sb2 on 名称 /d ,启用日期 /d for 主要设备=.t. use sb2 list 3. use sb (1) index on 编号 descending tag bh (2) index on 名称+DTOC(启用日期) descending tag mcqyrq unique (3) index on str(部门,10,0)- DTOC(启用日期) descending candidate 4.顺序查询: Locate for year(启用日期)=1992 and 主要设备=.f. Disp Continue 索引查询: Index on year(启用日期) tag qyrq Seek 1992 9. count to num for year(启用日期)1992 and 主要设备 10. use 考生.dbf List fields 姓名,语文+数学+外语 Calculate avg(语文),avg(数学)+avg(外语) 11. total to huizong.dbf on 部门 fields 价格

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档