码迷,mamicode.com
首页 > 数据库 > 详细

SQL Server Summary

时间:2015-07-31 00:59:33      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

Recently I have got some free time and go over the knowledge about SQL Server.Write this acticle in order to review in the future.

1.  Join Option

Join is important option in relational database.There are many types of Join including Inner join, Outer join and Cross join.

Some important Tips:

2.  Transaction :

  • Transaction Features(ACID):Atomicity, Consistency, Isolation and Durability
  • Transaction Template
--Transaction Template
CREATE TRANSACTION [Name]
AS
BEGIN TRY
    BEGIN TRANSACTION
        --Execute Code
    COMMIT TRANSACTION
END TRY
BEGIN CATCH
    IF(@@TRANCOUNT >0)
        ROLLBACK TRANSACTION
    END IF
END CATCH

 

SQL Server Summary

标签:

原文地址:http://www.cnblogs.com/Blackeye286/p/3716525.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!