日期:2014-05-20 浏览次数:20750 次
INSERT INTO [表]([ID]) VALUES (1);
INSERT INTO [表]([ID]) VALUES (1);
BEGIN TRANSACTION
INSERT INTO [表]([ID]) VALUES (1);
INSERT INTO [表]([ID]) VALUES (1);
IF @@ERROR > 0
BEGIN
ROLLBACK TRANSACTION
END
ELSE
BEGIN
COMMIT TRANSACTION
END