vfp上机答案切勿删除.doc

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

1.2.1select 供应商号,工程号,数量 from 供应,零件 where 供应.零件号=零件.零件号 and 颜色=红 order by 数量 desc into dbf supply_temp 1.3 command1.click 事件代码 thisform.grid1.recordsourcetype=4 k=alltrim(thisform.text1.value) thisform.grid1.recordsource=select 零件名,颜色,重量 from 供应,零件 where 供应.零件号=零件.零件号 and 工程号=k order by 零件名 into dbf pp thisform.refresh 2.2.1 command1.click 事件代码 select 作者姓名,所在城市 from authors,books where authors.作者编号=books.作者编号 group by authors.作者编号 having count(*)=3 order by 作者姓名 into table new_view4 3.3.1 select * from books where 书名 like %计算机% into dbf books_bak 3.3.2 update books_bak set 价格=价格*(1-0.05) 3.3.3 select 出版单位,avg(价格) as 均价 from books_bak group by 出版单位 having avg(价格)=25 into cursor ls select * from ls where 均价 =(select min(均价) from ls ) into table new_table4 3.2.1 select 项目信息.项目号,项目名,零件信息.零件号,零件名称 from 零件信息,使用零件,项目信息 where 零件信息.零件号=使用零件.零件号 and 使用零件.项目号=项目信息.项目号 order by 项目信息.项目号 desc,零件信息.零件号 into dbf item_temp 3.3 command1.click代码 select sum(单价*数量) from 零件信息,使用零件 where 零件信息.零件号=使用零件.零件号 and 项目号=bo1.value into array k thisform.text1.value=k(1) thisform.refresh 4.3 “统计”菜单选项的“过程”代码 select 组别,sum(金额) as 合计 from employee,orders where employee.职员号=orders.职员号 group by 组别 order by 合计 desc into cursor t1 select 组别,姓名 as 负责人 from employee where 职务=组长 into cursor t2 select t1.组别,负责人,合计 from t1,t2 where t1.组别=t2.组别 order by 合计 desc into dbf tabletwo 5.3 command1.click 事件代码 k=bo1.value select count(*) from book where 出版社=k into array a thisform.text1.value=a(1,1) thisform.refresh 6.1.1 insert into 零件信息 values(p7,PN7,1020) 6.1.2 delete from 零件信息 where 单价600 6.1.3 update 零件信息 set 单价=1090 where 零件号=p4 错误1:FOR i=1 TO thisform.List1.ColumnCount 修改为:FOR i=1 TO thisform.List1.ListCount 错误2:s=thisform.List1.value 修改为:s=thisform.List1.List(i) 错误3:s=s+thisform.List1.value 修改为:s=s+,+thisform.List1.List(i) 7.3 “统计”菜单选项的“过程”代码 select customer.客户号,客户名,sum(金额) as 合计 from customer,orders where customer.客户号=orders.客户号 group by customer.客户号 order by 合计 desc into dbf tabletwo 8.3 Form1.load事件代码 publi

文档评论(0)

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

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

1亿VIP精品文档

相关文档