查询:
delete Emp_Shift_Dtls where ROW_ID = @inROW_ID
执行:
DECLARE @return_value int,
@ou_Remarks nvarchar(4000),
@ou_intRetValue int
EXEC @return_value = [dbo].[procEmployeeShiftDetails]
@DMLType = N'D',
@inROW_ID = 348a6552-1bf1-4e52-9386-88f04ad9bac4,
@ou_Remarks = @ou_Remarks OUTPUT,
@ou_intRetValue = @ou_intRetValue OUTPUT
SELECT @ou_Remarks as N'@ou_Remarks',
@ou_intRetValue as N'@ou_intRetValue'
SELECT 'Return Value' = @return_value
此处@inROW_ID
是uniqueidentifier
。我无法执行查询,它显示错误,如@inROW_ID
答案 0 :(得分:2)
在下面的声明中缺少引号。它是一个字符串文字,因此需要引用'
@inROW_ID = '348a6552-1bf1-4e52-9386-88f04ad9bac4'