0
If(variable1='table name1')
BEGIN TRY
...........
...........
.....
END TRY
BEGIN CATCH
RAISERROR ('FAILED TO GET DATA FROM hh_usr_card_dtls',16,-1)
RETURN -1
END CATCH
上面的代碼是SQL(MS SQL), 我想在MySQL中實現同樣的事情。你能幫我麼?MySQL試試catch
dup:http://stackoverflow.com/questions/3396715/mysql-try-catch – 2010-08-04 04:47:54