摘要
在数据库中,要求数据保持一致。在数据操作过程中,可能会出现一条或一组语句因为意外故障而被迫中断执行得情况,这就有可能导致数据库中数据不一致的问题。而事务则是解决这一问题的有效方法。该文先对事务进行简单介绍,然后通过实例的方式介绍其在C#中的具体应用。
In the database,the data is consistent.One or a set of statements may appear in the data manipulation process,because of unex pected failures forced to interrupt performs situation,which is likely to result in inconsistent data in the database.Transactions is an effective way to solve this problem.The article focuses on the affairs of a brief introduction,and then introduced through the examples of the way its specific application in C #.
出处
《电脑知识与技术(过刊)》
2012年第3X期1827-1829,1847,共4页
Computer Knowledge and Technology
关键词
事务
C#
应用
transaction
C#
application