如何在SQL Server存储过程中将guid(在varchar或nvarchar中)作为参数传递?

时间:2019-10-18 16:58:04

标签: sql-server stored-procedures parameters guid

这就是我尝试过的

DECLARE @u uniqueidentifier SELECT @u = CONVERT(uniqueidentifier, '33EA6038-57D3-4912-8EA8-662BC1B1C413')


exec TeamF.applyCarLoan @LoanID = newid,@CustomerID = @u ,@AmountApplied = 120000,@InterestRate = 10.65

@customerID是我要传递varchar格式的Guid的参数

0 个答案:

没有答案