-- 开事务, 以保持锁BEGIN TRAN-- 更新update a set column1 = 1 where idx = 1-- 列出锁信息EXEC sp_lock @@spid-- 提交或者回滚事务COMMIT/ROLLBACK TRAN select * from sysobjects where xtype = 'u' and name = ta
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有