declare @num int begin try set @num=1/0 end try begin catch select ERROR_LINE() as 错误行数, ERROR_MESSAGE() as 错误消息 end catch
运行截图:
时间: 2024-10-28 23:06:42
declare @num int begin try set @num=1/0 end try begin catch select ERROR_LINE() as 错误行数, ERROR_MESSAGE() as 错误消息 end catch
运行截图: