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.
精彩评论