开发者

MySQL try catch

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜