Home  >  Article  >  Database  >  sql Raiserror with parameters

sql Raiserror with parameters

WBOY
WBOYOriginal
2016-06-07 14:54:471093browse

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.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, @raiseErrorCode)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn