DECLARE condition_name CONDITION FOR condition_value
condition_value:
    SQLSTATE [VALUE] sqlstate_value
  | mysql_error_code
          Esta instrução especifica condições que necessitarão de
          tratamento especial. Ela associa um nome com uma condição de
          erro específica. O nome pode ser subsequentemente usado em
          uma instrução DECLARE HANDLER. See
          Secção 11.1.7.2, “DECLARE Handlers”.
        
Além dos valores SQLSTATE, códigos de erro do MySQL também são suportados.
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.

