declare @num intbegin tryset @num=1/0end trybegin catchselect ERROR_LINE() as 错误行数, ERROR_MESSAGE() as 错误消息end catch
运行截图:
本文共 177 字,大约阅读时间需要 1 分钟。
declare @num intbegin tryset @num=1/0end trybegin catchselect ERROR_LINE() as 错误行数, ERROR_MESSAGE() as 错误消息end catch
运行截图:
转载于:https://www.cnblogs.com/527289276qq/p/4872775.html