存储过程:操作数类型冲突: uniqueidentifier 与 int 不兼容
alterprocpro_add_CombGuid(@combGuiduniqueidentifieroutput)assetnocounton;set@combGuid...
alter proc pro_add_CombGuid
(
@combGuid uniqueidentifier output
)
as
set nocount on;
set @combGuid = CAST(CAST(NEWID()AS BINARY(10)) + CAST(GETDATE() AS BINARY(6)) AS UNIQUEIDENTIFIER)
set nocount off;
return @combGuid--这里报错 展开
(
@combGuid uniqueidentifier output
)
as
set nocount on;
set @combGuid = CAST(CAST(NEWID()AS BINARY(10)) + CAST(GETDATE() AS BINARY(6)) AS UNIQUEIDENTIFIER)
set nocount off;
return @combGuid--这里报错 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询