What is the syntax meaning of RAISERROR()

前端 未结 5 2033
情歌与酒
情歌与酒 2021-02-02 05:39

I just created a Instead After Trigger whose syntax is given below:

Create trigger tgrInsteadTrigger on copytableto
Instead of Insert as 
    Declare @store_name         


        
5条回答
  •  伪装坚强ぢ
    2021-02-02 06:09

    according to MSDN

    RAISERROR ( { msg_id | msg_str | @local_variable }
        { ,severity ,state }
        [ ,argument [ ,...n ] ] )
        [ WITH option [ ,...n ] ]
    

    16 would be the severity.
    1 would be the state.

    The error you get is because you have not properly supplied the required parameters for the RAISEERROR function.

提交回复
热议问题