开发者

MySQL try catch

开发者 https://www.devze.com 2023-01-10 07:29 出处:网络
If(variable1=\'table name1\') BEGIN TRY ........... ........... ..... END TRY BEGIN CATCH RAISERROR (\'FAILED TO GET DATA FROM hh_usr_card_dtls\',16,-1)
If(variable1='table name1')
BEGIN TRY
...........
...........
.....
END TRY
BEGIN CATCH 
        RAISERROR ('FAILED TO GET DATA FROM hh_usr_card_dtls',16,-1)      
        RETURN -1
    EN开发者_如何学运维D CATCH 

The above code is in SQL (MS SQL), I want implement same thing in MySQL. Can you please help me?


No, MySQL does not have that functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消