完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本范例更改数据库的 titles 表中所有心理学书籍的类型。首先,BeginTrans 方法启动一个事务,将所有对 Titles 表做出的更改隔离,然后,CommitTrans 方法将保存更改。可使用 RollbackTrans 方法撤消用 Update 方法保存的更改。 Public Sub BeginTransX() Dim cnn1 As ADODB.Connection ' Open connection. ' Open Titles table. ' Loop through recordset and ask user if she wants ' Change the title for the specified rstTitles.MoveNext ' Ask if the user wants to commit to all the ' Print current data in recordset. ' Restore original data because this rstTitles.Close End Sub |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
11958 浏览 2 评论
4346 浏览 3 评论
3548 浏览 5 评论
8907 浏览 47 评论
4223 浏览 9 评论
517浏览 0评论
286浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-7-27 08:27 , Processed in 0.563745 second(s), Total 68, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191