title: Mysql stored procedure if (select....) > variable then
body: <p>I want to do something like:  </p>
  
  <pre><code>if ((select count(id) from abc where ...) &gt; variableINT) then .....
  </code></pre>
  
  <p>Why does this doesn´t work properly?</p>