网络 中可以定义变量; 试一试
You can catch exceptions with TryCatch, for example.
你可以使用TryCatch来捕获异常,如下所示。
If you do have a TryCatch the exception is caught and your code is allowed to continue processing.
如果你设置一个TryCatch,异常就会被捕获,你的代码可以继续执行。
If the value returned is an empty handle, and you do not have a TryCatch in place, your code must bail out.
如果返回值是一个空句柄,并且你没有正确的设置TryCatch,你的代码就会崩溃。
Returns the name of the stored procedure or trigger where an error occurred that caused the CATCH block of a TRYCATCH construct to be run.
返回在其中出现了导致TRYCATCH构造的CATCH块运行的错误的存储过程或触发器的名称。
Returns the error number of the error that caused the CATCH block of a TRYCATCH construct to be run.
返回错误的错误号,该错误会导致运行TRYCATCH结构的CATCH块。