完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
Item 属性范例 (VB)
从 Command 对象的 Parameters 集合中,按照索引和名称访问针对数据库发出的命令中的参数。然后按索引和名称从该对象的 Fields 集合访问返回的 Recordset 的字段。
Public Sub ItemX() Set cnn = New ADODB.Connection 'Set the array with the Authors table field (column) names cmd.CommandText = "SELECT * FROM Authors WHERE state = ?" cnn.Open "DSN=Pubs;Provider=MSDASQL; uid=sa;pwd=;" Debug.Print "The Parameters collection accessed by index..." Debug.Print "The Parameters collection accessed by name..." Debug.Print "The Fields collection accessed by index..." Debug.Print "The Fields collection accessed by name..." rst.Close |
|
相关推荐 |
|
只有小组成员才能发言,加入小组>>
12549 浏览 2 评论
4812 浏览 3 评论
4143 浏览 5 评论
11106 浏览 47 评论
5190 浏览 9 评论
965浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-15 06:29 , Processed in 3.710291 second(s), Total 66, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2870