Home:ALL Converter>What is the equivalent for @@Error in Oracle

What is the equivalent for @@Error in Oracle

Ask Time:2019-03-01T21:53:46         Author:vikky

Json Formatter

IF @@ERROR <> 0 GOTO ProcError

I have the above code in SQL Server.I am unable to find an oracle equivalent for @@Error.

How can this be achieved?

Author:vikky,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54946078/what-is-the-equivalent-for-error-in-oracle
Steven Feuerstein :

I agree with @Kfinity's offering of an exception handler to trap an error raised by a SQL statement (or PL/SQL statement for that matter).\n\nIt might also be helpful to know that the direct correlation of @@Error in PL/SQL is SQLCODE. If non-zero (which it only is when invoked from within an exception handler) it gives you the error code. If 0, well, then....no error!",
2019-03-01T18:09:49
yy