MySQL Reference Manual for version 4.0.18.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

18.1.7.1 DECLARE Conditions

 
DECLARE condition_name CONDITION FOR condition_value

condition_value:
    SQLSTATE [VALUE] sqlstate_value
  | mysql_error_code

This statement specifies conditions that will need specific handling. It associates a name with a specified error condition. The name can subsequently be used in a DECLARE HANDLER statement. See section 18.1.7.2 DECLARE Handlers.

In addition to SQLSTATE values, MySQL error codes are also supported.



This document was generated by rdg (Feb 25 2004) using texi2html