Sql Server異常捕獲 try catch

declare @num int begin try set @num=1/0 end try begin catch select ERROR_LINE() as 錯誤行數, ERROR_MESSAGE() as 錯誤消息 end catch   運行截圖:
相關文章
相關標籤/搜索