微软SQl查询

时间:2018-10-29 14:58:34

标签: if-statement triggers raiseerror

运行关于租金的更新语句后,我没有出现引发的错误

Begin 
     if (@check is not null)
     Begin try
    raiserror ('MOVIE HAS BEEN CHECKED IN AT AN EARLIER TIME',20,1) with log ;
    end try
    begin catch 
    select error_message()
    end catch
end

0 个答案:

没有答案