VFP习题答案(第二版).pdfVIP

  • 18
  • 0
  • 约1.14万字
  • 约 13页
  • 2022-07-25 发布于上海
  • 举报
《Visual Foxpro 程序设计与应用教程(第二版)》 部分习题参考答案 (蒋望东整理,如您发现有遗漏及错误,或您有补充,请告知 ,谢谢!) 第 2 章 第 53 页 5 题答案 (1) x-int(x) (2) y%4= 0 and y%100!=0 or y%400= 0 或 mod(y,4)=0 and mod(y,100)!=0 or mod(y,400)=0 (3) x%3=2 and x%5=3 (4) sin(pi()/6)+sqrt((x+y)/(x-y)) (5) date() – {^1997-06-30} 第 53 页 6 题答案 (1) mod(员工编号,2)=1 and 婚否=.F. (2) left(联系电话,4)=’0731’ and 性别=’男’ (3) year(date()) – year(工作日期)15 or 工资级别10 (4) left(姓名,2)=”张” and 部门名称=’人事处’ (5) between(工作日期 ,{^2005-10-01},{^2008-01-01} ) and 工资级别3 或 工作日期{^2005-10-01} and 工作日期{^2008-01-01} and 工资级别3 第 3 章 第 85 页第 2 题 1、go 2 list next 3 2、list for 性别=’男’ 3、list for 性别=’女’ and 部门=”技术” 4、list for 出生日期 {^1975-01-01} 或 list for year(出生日期) 1975 5、list all fields 编号,部门,姓名,职称 6、go 3 list rest for 性别=”女” 7、list for right(编号,1)=”8” and 婚否=.T. 8、list for substr(编号,2,1)=”3” 9、browse fields 姓名,部门,出生日期,职称 for 性别=”男” 10、(见P72 例 3.22) browse fields 编号,姓名,性别,职称 partition 30 redit 第 85 页第 3 题 1、copy to zgqk1 2、use zgqk copy structure to zgqk2 use zgqk2 list structure 3、Use zgqk copy to zgqk3 for year(出生日期)1975 4. use zgqk copy to zgqk4 fields 姓名,部门,出生日期,简历 5. use zgqk copy to zgqk.txt sd use zgqk2 append from zgqk.txt sd 第 85 页第 4 题 1、 go 2 append blank replace 编号 with “05060” …….. 2、 delete record 2 delete record 5 或 go 2 delete go 5 delete 或 delete for recno()=2 or recno()=5 3、 go 2 recall pack 或 recall record 2 pack 或 recall for recno()=2 pack 4、use zgqk1 dimention aa(10) scatter to aa memo aa(5)={^1985-07-01} aa(9)=”该职工评为先进个人” gather from aa memo 5、use zgqk1 zap append from zgqk 第 85 页第 5 题 使用 SQL 语句修改:(参考教材P126)

文档评论(0)

1亿VIP精品文档

相关文档