Maison > Article > base de données > sql Raiserror with parameters
URL: http://msdn.microsoft.com/en-us/library/ms178592.aspx 无 DECLARE @raiseErrorCode nvarchar(50)SET @raiseErrorCode = CONVERT(nvarchar(50), YOUR UNIQUEIDENTIFIER KEY)RAISERROR('%s INVALID ID. There is no record in table',16,1, @raiseError
URL: http://msdn.microsoft.com/en-us/library/ms178592.aspxDECLARE @raiseErrorCode nvarchar(50) SET @raiseErrorCode = CONVERT(nvarchar(50), YOUR UNIQUEIDENTIFIER KEY) RAISERROR('%s INVALID ID. There is no record in table',16,1, @raiseErrorCode)