如何同时处理2个用户的条目 [英] How to handle 2 users' entries on same time

查看:74
本文介绍了如何同时处理2个用户的条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Basic 6.0中生成帐单的过程中,我们遇到了一些问题.如果两个用户同时单击保存"按钮,我们应该如何处理两个用户的条目?如果您给我发一个小例子,那将是很大的帮助.在此先感谢.

we are facing some problem during bill generation in Visual Basic 6.0. if two users click "Save" button on same time, how should we handle both users'' entries? if you send me a small example, that will be a great help. Thanks in advance.

推荐答案

请执行以下操作

处理存储过程中的插入操作:

步骤1:创建存储的程序
第2步:在插入数据时应用事务
步骤3:提交交易

通过应用事务,您可以轻松地一次处理两次插入
Do the following things

handle insert operation in stored procedure :

step 1 : create stored proceudre
step 2 : do apply transaction when inserting data
step 3 : commit transaction

by applying transaction you can easily handle two inserting at one time


这篇关于如何同时处理2个用户的条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆