T-SQL-Transaction)

Source: Internet
Author: User
Today, let's talk about the transaction usage in the T-SQL syntax. transactions are rarely used in projects. They are mainly used for transfers or multi-Table operations. The first step cannot be rolled back, do not perform the next step. Either incomplete or complete, which is a feature of transactions. The syntax is simple. The sample code is as follows: Transaction_9_302useTransaction_9_30Zang

Today, let's talk about the transaction usage in the T-SQL syntax. transactions are rarely used in projects. They are mainly used for transfers or multi-Table operations. The first step cannot be rolled back, do not perform the next step. Either incomplete or complete, which is a feature of transactions. The syntax is simple. The sample code is as follows: Transaction_9_30 2 use Transaction_9_30 Zang

Today, let's talk about the transaction usage in the T-SQL syntax. transactions are rarely used in projects. Hong Kong servers are mainly used for transfers, U.S. space, or some multi-Table operations, the first step cannot be completed and the next step is not executed. Either incomplete or complete, which is a feature of transactions.

The syntax is very simple. The example code is as follows:

Transaction_9_30 2 use Transaction_9_30 Zanghui Jago. zhanghui 6 (,) Jago. zhanghui (ID, Balance) values (1,1000); Jago. zhanghui (ID, Balance) values (2,3000); ID = 1; ID = 2; Jago. zhanghuit1; ID = 1; (Jago. zhanghui where ID = 1); ID = 2; (Jago. zhanghui where ID = 2); () t1; t1;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.