title: Mysql : Throw an exception inside procedure
body: <p>I have this code below that should throw an exception if amount is negative : </p>
  
  <pre><code>create procedure depositMoney(
          IN acc integer,
          IN amoun integer
      )
      BEGIN
          DECLARE negative CONDITION FOR SQLSTATE '45000';
          IF amoun &lt; 0 THEN SIGNAL negative;
          END IF;
          INSERT INTO account(balance) VALUES amoun where account.number = acc;
      END; 
  </code></pre>
  
  <p>but when i execute i have an #1064 error: </p>
  
  <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
  </code></pre>
  
  <p>Could you help me ?</p>