MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Al Date:February 10 2009 7:24pm
Subject:How to get Error Number and Error Message
View as plain text  
I know that all of the prgramming interfaces have the ability to issue a 
Function Call to get
  "error number for the most recently invoked MySQL function"

and
 
      "the error message for the most recently invoked MySQL function"


such as in C using " *mysql_errno()"   etc.

BUT
*
Surely there is a way to get the SAME info via a "SQL statment"  or 
"function"

I know one can do a
               **

select @@error_count as errorcount;

to get the COUNT of errors, Surely there is SOMETHING similar
to get the latest ERROR NUMBER and latest ERROR MESSAGE,

but I have looked everywhere.

Has anyone seen a way to do this ????

THANKS a LOT for any and all help

Thread
How to get Error Number and Error MessageAl10 Feb