当前位置:Gxlcms > 数据库问题 > SQL RAISERROR 用法

SQL RAISERROR 用法

时间:2021-07-01 10:21:17 帮助过:3人阅读

@raiseErrorCode nvarchar(50) SET @raiseErrorCode = CONVERT(nvarchar(50), YOUR UNIQUEIDENTIFIER KEY) RAISERROR(%s INVALID ID. There is no record in table,16,1, @raiseErrorCode)
RAISERROR (
             NThis is message %s %d., -- Message text,
             10,                        -- Severity,
             1,                         -- State,
             Nnumber,                 -- First argument.
             5                          -- Second argument.
          ); 
-- The message text returned is: This is message number 5.

 

SQL RAISERROR 用法

标签:

人气教程排行