6.3.3.2 Excel VBA数据库的Execute方法
时间:2023-05-29 22:02:36
执行指定的查询、SQL语句、存储过程或特定提供者的文本等内容。
对于非按行返回的命令字符巾:
connection. Execute CommandText, RecordsAffected, Options
对于按行返回的命令字符串:
Set recordset一connection. Execute (CommandText. RecordsAffected,
Options)
今f(CommandText字符串包含要执行的SQL语句、表名、存储过程或特定提供者的文
本。RecordsAffected可选,长整型变一,提供者向其返回操作所影响的记录效目。Options
可选,长整狱位.指示提供者应如何计算Commandlcxt参数.可为表6.2中的位。
使用Correction对象的Execute方法,可执行任何在指定连接的CommandTcxt今数中传
送给方法的查询。如果CommandText今数指定按行返回的查询,执行产生的任何结果将存
储在新的RecordsetX4象中。如果命令不是按行返回的查询。
标签:指定,提供者,查询,返回,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
windows7系统中我的文档怎样默认移动到D盘?
2023-12-05 03:41:34
![](https://img.aspxhome.com/file/2023/29/a257132_0s.jpg)
电脑WiFi正常上网但是无法看网页视频的解决办法
2023-04-03 14:50:30
![](https://img.aspxhome.com/file/2023/2/a290261_0s.jpg)
WPS表格如何解除宏禁用
2023-10-25 21:09:31
这些关于 Safari 浏览器的小技巧,你都会用吗?
2022-02-17 11:08:32
![](https://img.aspxhome.com/file/2023/6/a198506_0s.jpg)
Win10 Edge浏览器Cortana获新技能
2023-01-26 05:03:24
![](https://img.aspxhome.com/file/2023/5/a316857_0s.jpg)
苹果爆料大神ihacktu最新透露:搭载apple silicon处理器的Mac于10月见
2022-04-18 23:59:49
![](https://img.aspxhome.com/file/2023/7/a209847_0s.jpeg)
WPS表格函数怎样自动汇总报名册
2023-10-06 16:51:09
设置word文字竖着排版的两种方法
2022-01-15 10:05:33
win10卓越性能如何开启?win10卓越性能开启教程
2022-07-29 06:10:23
![](https://img.aspxhome.com/file/2023/28/a241508_0s.png)
注意要保留csv格式
2023-06-01 18:52:20
Win10系统怎么设置点击任务栏程序图标就能直接切换程序窗口?
2022-05-13 21:50:30
![](https://img.aspxhome.com/file/2023/26/a222520_0s.png)
Win10怎么关闭文件资源管理器搜索记录?
2023-10-15 02:13:34
![](https://img.aspxhome.com/file/2023/26/a219433_0s.png)
WPS演示怎么将幻灯片内容打包文件夹操作分享
2023-05-17 19:41:46
![](https://img.aspxhome.com/file/2023/9/a182519_0s.jpg)
Win10开机提示桌面位置不可用的三种解决办法
2022-12-18 21:43:03
![](https://img.aspxhome.com/file/2023/29/a260261_0s.jpg )
用数据透视表out了!这3个 “按月汇总” 的Excel公式更实用
2023-11-19 08:41:41
![](https://img.aspxhome.com/file/2023/7/a142787_0s.jpg)
Win10专业版如何设置风扇转速?
2023-02-24 20:50:20
![](https://img.aspxhome.com/file/2023/26/a223053_0s.png)
word插入图片快速排版技巧,对齐设置快捷操作,小技巧解决大问题
2023-11-08 11:10:18
![](https://img.aspxhome.com/file/2023/6/16966_0s.png)
菜鸟裹裹如何加密包裹?菜鸟裹裹加密包裹的方法
2022-04-19 21:51:33
![](https://img.aspxhome.com/file/2023/8/a333028_0s.jpg)
Understand教程—使用搜索功能的几种方法
2023-12-11 15:29:33
![](https://img.aspxhome.com/file/2023/0/a213640_0s.png)
如何在Word中保存设置好的字体
2023-05-17 16:31:22