- 1、本文档共45页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ADO Recordset
ASP-ADORecordset(记录集) 刘林东/Daniel lld@gdei.edu.cnRecordset Represents the entire set of records from a base table or the results of an executed command. At any time, the Recordset object refers to only a single record within the set as the current record. Recordset You use Recordset objects to manipulate data from a provider. When you use ADO, you manipulate data almost entirely using Recordset objects. All Recordset objects consist of records (rows) and fields (columns). Depending on the functionality supported by the provider, some Recordset methods or properties may not be available. Create a recordset object You can create as many Recordset objects as needed. Method-addnew AddNew:The method creates a new record for an updateable Recordset object. After you call this method, the new record will be the current record.? Syntax objRecordset.AddNew fieldlist,values SQl=“select * from user where sex=‘M’”rs.open sql,conn Method-addnew Example %rs.AddNew ProductName,Chang%or%varfields=Array(ProductName,Prize,Quantity)varvalues=Array(Chang,19,24-12 oz bottles)rs.AddNew varfields,varvalues% Method Cancel:The Cancel method cancels an execution of a method call. CancelBatch:The method cancels a batch update. The Recordset must be in batch update mode when calling this method. CancelUpdate:The method cancels changes made to a record of a Recordset object, or the Fields collection of a Record object, before calling the Update method. Method Close:The method is used to close a Connection object, a Record object, a Recordset object, or a Stream object to free system resources. Delete:The method is used to delete the current record or a group of records. After deleting a record, the deleted record remains current until you move to a different record. Note: To use this method assure that the Recordset object allows record deletion. Note: If this method fails, the provider will not stop the execution, but it will send a warning to the Errors Collectio
您可能关注的文档
最近下载
- 论 自由 精品读本.pdf
- 医疗器械质量管理体系文件.pptx
- 金融中心施工总承包工程项目特色与观摩亮点介绍.pptx
- 小学数学六年级上册期中易错题重难点试卷含详细答案解析1524.docx
- 做自己的心理医生【26页】.pptx
- Module 4 单元整体教学设计 外研版(三起)六年级上册英语.docx
- 环球金融中心项目专项测量放线施工方案.docx
- 环球金融中心项目施工总承包工程质量创优策划.ppt
- 鼎信JB-QT-TS3200火灾报警控制器(联动型)安装使用说明书 XF2.900.029AS Ver.pdf VIP
- 中华护理学会团体标准TCNAS 21─2021解读:胰岛素皮下注射(1).pptx
文档评论(0)