请问 WITH ( UPDLOCK, HOLDLOCK )是什么用法 Asp.net的Membership表的CreateUser存储过程中为什么要加 WITH ( UPDLOCK, HOLDLOCK )锁呢?
另外with这里是个函数吗?后面可以跟多个参数? 能讲下with()的用法吗
IF (@UniqueEmail = 1)
BEGIN
IF (EXISTS (SELECT *
FROM dbo.aspnet_Membership m WITH ( UPDLOCK, HOLDLOCK )
WHERE ApplicationId = @ApplicationId AND LoweredEmail = LOWER(@Email)))
BEGIN
SET @ErrorCode = 7
GOTO Cleanup
END
END