Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


15.7.7.19 SHOW ERRORS Statement

SHOW ERRORS [LIMIT [offset,]row_count]SHOW COUNT(*) ERRORS

SHOW ERRORS is a diagnostic statement that is similar toSHOW WARNINGS, except that it displays information only for errors, rather than for errors, warnings, and notes.

TheLIMIT clause has the same syntax as for theSELECT statement. SeeSection 15.2.13, “SELECT Statement”.

TheSHOW COUNT(*) ERRORS statement displays the number of errors. You can also retrieve this number from theerror_count variable:

SHOW COUNT(*) ERRORS;SELECT @@error_count;

SHOW ERRORS anderror_count apply only to errors, not warnings or notes. In other respects, they are similar toSHOW WARNINGS andwarning_count. In particular,SHOW ERRORS cannot display information for more thanmax_error_count messages, anderror_count can exceed the value ofmax_error_count if the number of errors exceedsmax_error_count.

For more information, seeSection 15.7.7.43, “SHOW WARNINGS Statement”.